- Drop the codegen into
DOCROOT/modules/
, enable codegen module inapplication/bootstrap.php
- Start to generate source code by access
http://www.example.com/codegen
- All source code files will be generated in
DOCROOT/temp/db_group_name/
- Generate code from defferent database config group
http://www.example.com/codegen?m=db_group_name
- Generation control in
config/codegen.php
- Customize controller classes generation in
classes/codegen/controller.php
- Customize model classes generation in
classes/codegen/model.php
- Customize view classes generation in
classes/codegen/view.php
- Customize view templates generation in
views/codegen/(php | mustache | twig | smarty)/
- Customize i18n key-value pairs generation in
classes/codegen/i18n.php