CodeIgniter Forums

Full Version: add code generate tool
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
CI should add code (application skeleton) generate tool like zend or cakephp Console. Every time create and put default code in controller/view is annoying.

Hope Ci authority take this issue seriously for CI 4
You could easily handle this using snippets for example in Sublime Text.
But I agree that it would be cool if we have a cli command like 'codeigniter generate controller controller_name' or something like this.
why not create a poll for it ?
this is IDE's job
(04-09-2015, 11:42 PM)gadelat Wrote: [ -> ]this is IDE's job

+1
(04-09-2015, 02:58 PM)bw.balazs Wrote: [ -> ]You could easily handle this using snippets for example in Sublime Text.
But I agree that it would be cool if we have a cli command like 'codeigniter generate controller controller_name' or something like this.

As far as i know most of the CI developer doesn't use sublime. However even in netbeans code generator tool is little bit buggy. More over every modern famous PHP framework come with this feature. This feature will bring CI one step ahead for lazy developer Tongue
Perhaps packeges as restful resource will be useful to have a generator.. but simple things as controllers models views .. there is no point of that
i created a sumple CRUD for my models and i have a simple base controller, and i use netbeans, how code generator can speed up my development? can a netbeans plugin do them for me?
(04-10-2015, 11:07 PM)rejoan Wrote: [ -> ]
(04-09-2015, 02:58 PM)bw.balazs Wrote: [ -> ]You could easily handle this using snippets for example in Sublime Text.
But I agree that it would be cool if we have a cli command like 'codeigniter generate controller controller_name' or something like this.

As far as i know most of the CI developer doesn't use sublime. However even in netbeans code generator tool is little bit buggy. More over every modern famous PHP framework come with this feature. This feature will bring CI one step ahead for lazy developer  Tongue

It was just an example. Every trending IDE has the ability to do this. So I agree with those who said it's not the framework's responsibility to generate controllers or models. You could even generate only the base of those so it's not a big deal I think.
I dislike using cli with php development.