|
I've heard of PHPMaker but since CodeIgniter is relatively new do you know of a code generator targeting the CodeIgniter Framework? |
|
Try Form Igniter at http://formigniter.org/ Best thing is you can download the source, so you can host it in your dev puter, modify 'em to your liking and voila ... you are the king of the code este ... heaps of writing codes.:) Thanks to Ollie Rattue for sharing this wonderful tool. This would work in small CRUD-y apps, where form validation logic is as simple as field lengths, data type checking and commonly-used regular expression checking. Unfortunately, not a lot of web-apps are as simple as that. @leypascua - True but then one can modify the source to his/her liking (say modifying/improving the so simple validation logic) and perhaps share these additions to the open source community or to the dev guy who started the thing. |
|
Why would you need a code generator for CodeIgniter? If it is for generating code for data access, I suggest you step away from it. If you don't want CI's "ActiveRecord" impl, I suggest you look at an ORM, preferably Doctrine (http://www.doctrine-project.org) Think very carefully if you need a "scaffolding" mechanism in your app. You may be writing less code at the early stage, but you may end up being alienated by code you didn't write in the long run. My perception of having a code generator "tool" somehow "standardize" the code. Moreover, if we can feed this "tool" with a template of our desired code output then I guess developers can do away manual coding of repetitive task thereby shortening the development time. I agree with you totally of getting alienated in the long run, but this is only when one misses out to learn the principles behind the outputted code, probably the design pattern used or "scaffolding" mechanism. Can I assume you're not in favor of creating code generators targetting the CodeIgniter framework? Thanks! 2
IMO, Stick to the conventions published by CI and you'll be fine. What I do is to keep a clean folder structure for CI which I can re-use in projects. I created a batch file to copy the folder structure to a location where I will put my code for a new project. I haven't been in a situation where there are a lot of boilerplate code in CI aside from data access tasks. With sufficient code completion and refactoring support in your IDE you'll be churning out code fast enough to get the job done. |
|
Use the PCG(PHP Code Codeigniter) from ThePHPCode.com that generates the complete PHP coding for a website with Codeigniter framework. The entire website is generated online and can be previewed before downloading.
|