Skip to content

Code generation from database, including controllers, models, views, templates and i18n

Notifications You must be signed in to change notification settings

bato3/Kohana-Codegen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto code generation step by step

  1. Drop the codegen into DOCROOT/modules/, enable codegen module in application/bootstrap.php
  2. Start to generate source code by access http://www.example.com/codegen
  3. All source code files will be generated in DOCROOT/temp/db_group_name/
  4. Generate code from defferent database config group http://www.example.com/codegen?m=db_group_name

Customize step by step

  1. Generation control in config/codegen.php
  2. Customize controller classes generation in classes/codegen/controller.php
  3. Customize model classes generation in classes/codegen/model.php
  4. Customize view classes generation in classes/codegen/view.php
  5. Customize view templates generation in views/codegen/(php | mustache | twig | smarty)/
  6. Customize i18n key-value pairs generation in classes/codegen/i18n.php

Snapshot

Kohana Codegen Snapshot!

ISC License (ISCL)

http://www.opensource.org/licenses/isc-license.txt

About

Code generation from database, including controllers, models, views, templates and i18n

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%