I’ve released V0.3 of Code Crafter, a code generator utility written especially for the CI framework.
Code Crafter is a code generator for the Code Igniter framework.
My intention was to release it once settling down table relationships for good, but I am releasing it due to some interest in new features and some bug fixes.
Some notable changes:-
- A redesign of the CodeCrafter user interface.
- the generation of a runnable application upon code generation.
- The choice of using the CI AcctiveRecord of normal CI database functions.
- The option to use short or long tags (thanks Dave Nutall
- Verbose mode model generation
- Optional XXS filtering of data
- Filed level customisation.
- Key relations
- Cleaner Code
Unfortunately I have not had time to update the user manual. I am also busy with some projects that will put me out of action for a week or two, but I’ll try and address whatever issues I can. Please be understanding.
I’m still guiding by the principals that guided the first version.. So the ability to generate an entire application 5 seconds or less after startup is still there. Additional options for those that require it.
The field relationships are not what I intended, but I felt that as longs as the CI libraries are not supporting table or field relationships, my hands are tied. I did however, provide in the the interim a workable solution get get field relationships in a workable state. I was guided by what I had. I don;t want to introduce a framework-in-a-framework.
To install:
- Head over to http://www.datacraft.co.za/codecrafter/ and grab a copy of the code.
- Expand the archive somewhere temporarily.
- Install your version of Code Igniter
- Copy the following form CodeCraf to your CI install
- assets directory
- application/config/application.php file
- application/controllers/ directory
- application/views/ directory
- application/crud_output/ directory (It’s empty, but don’t leave it out!)
- Change the application/config/application.php file as you wish. see the comments for more information.
- Set your default routes (if you wish)
- Browse to:
http://yourdomain/path_to_install/codecrafter/
For now, make do without the help manual. I’ll throw something together. If you look at the old manual though, it’s not vastly different that you’ll be lost.
Some other forum links
http://codeigniter.com/forums/viewthread/45762/
