CodeIgniter Forums
add code generate tool - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: add code generate tool (/showthread.php?tid=61333)



add code generate tool - rejoan - 04-09-2015

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


RE: add code generate tool - bw.balazs - 04-09-2015

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.


RE: add code generate tool - suhindra - 04-09-2015

why not create a poll for it ?


RE: add code generate tool - gadelat - 04-09-2015

this is IDE's job


RE: add code generate tool - geekita - 04-10-2015

(04-09-2015, 11:42 PM)gadelat Wrote: this is IDE's job

+1


RE: add code generate tool - rejoan - 04-10-2015

(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


RE: add code generate tool - sv3tli0 - 04-11-2015

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


RE: add code generate tool - nasser.man - 04-11-2015

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?


RE: add code generate tool - bw.balazs - 04-12-2015

(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.


RE: add code generate tool - curunoir - 04-16-2015

I dislike using cli with php development.