Skip to content

this can be used to create model and controller with predefined model and controller template using CLI like in laravel

Notifications You must be signed in to change notification settings

asifzcpe/ModelControllerCIGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

ModelControllerCIGenerator

this can be used to create model and controller with predefined model and controller template using CLI like in laravel Note: This can not be used in HMVC struture.......

How to use the controller

  1. Download or clone the Tools.php file and keep it into your base controller folder

  2. go to cmd and browse your codeigniter folder

  3. run the following code on cmd:

php index.php tools api "your controller name"

That's it. A controller and a model of your given name have been created on your controller folder and model folder respectively

For example: I write the following controller: php index.php tools api "User" It will create a controller name UserController.php and a model User.php

Note#1: This only works on MVC not on HMVC but Features for HMVC will be added soon as well as for creating model.
Note#2: If you are using any ACL technique, please register Tools controller to your ACL.

About

this can be used to create model and controller with predefined model and controller template using CLI like in laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages