awegen is a code generator for Yii framework with optional Twitter Bootstrap support.
awegen borrows goodies from giix and gtc.
[Note: This extension isn't maintained any more.]
text
db typelongtext
db type
(Uses redactor)boolean
db typesboolean
types in Admin/CGridView
(Uses JToggleColumn extension)date
db typetime
, datetime
and timestamp
db type
(Uses datetimepicker widget)AweCrud/templates/default/auth
folder and they will be listed in the CRUD generator)name
in its name, first non-numeric field, primary key)Download from https://github.com/xtranophilist/awegen/zipball/master
Extract the awegen folder from the archive to extensions directory of your application.
Add the path of awegen to generatorPaths section in gii module configuration in config/main.php
'modules' => array(
'gii' => array(
'class' => 'system.gii.GiiModule',
'password' => 'password',
'generatorPaths' => array(
'ext.awegen',
),
),
...
),
Add the components required to your imports section
'import' => array(
...
'application.extensions.awegen.components.*',
),
Browse to /gii, login and select AweModel Generator to create Model and then AweCrud to generate Controller and Views.
Use *
for table name in Model generator to preview all models. Generate all or selectively.