CakePHP ver: 1.2.0.6311 beta.
AydCodegen ver: 0.5.
AydCodegen is a HTML frontend for bake tasks related to MVC files creation. See demo.
AydCodegen is in a very early development state now. It does not save any files to the server
Since ver 0.5 you can now:
- model baking
- you can specify Name,Primary key, useDBConfig, useTable
- you can set validations
- you can set associations
- controller baking
- you can make empty controller with $scaffold or scaffold all action)
- you can set admin routing (index -> admin_index)
- generate views (index,add,edit,delete or admin_index etc.)
- all generated files are automatically saved to the proper directory (disabled in the demo)
- you can save direct by php or send it by FTP (files gets FTP user permissions)
This demo works with folowing generated and saved files:
- --- Controllers ---
- /app/controllers/feed_controllers.php
- --- Models ---
- /app/models/feed.php
- /app/models/message.php
- /app/models/project.php
- /app/models/user.php
- /app/models/stat.php
How to install
Download AydCodegen. (login:anon, password:anon) Unpack and copy aydcodegen dir to PLUGINS directory.
Your database configuration file must be present and Cake must be able to connect to the database
Questions ?
Daniel Zelisko <daniel at zelisko dot net> (English,Spanish,Polish)
Sławomir Wilusz <slawek at wilusz dot net> or #cakephp (slawil) - (English,Polish)
About
Some of the features we have always been missing in bake were custom templates for models, views and controllers and a simple visual user interface for setting parameters and baking.
This was the reason we started the AydCodegen project a couple of months ago. Although coping with shomehow lousy code, some bugs and configuration problems we managed to create a visual generator that worked very well for many projects we developed. You can still download the old version from our svn repository. It allows you to manage your own templates independen from the ones bake uses.
However, this solution required some effort to keep up with bake changes and we have recently decided to link the ui we have created directly to bake libraries. As the 1.2 cake version appears to introduce independent code templates we think our project can be in symbiosis with core cakephp development.
Current "new" version is still obsolete and lacks many of the previous one's features, but it is usable and while working on improving it we are looking forward to receiving some feedback from users.
