Skip to content
Duy Nguyen edited this page May 28, 2015 · 1 revision

Phalcon Jumpstart DevTool comes with a very powerful tool that is in the Admin Panel Code Generator. Code Generator to automatically create tables in the database from the Model and Controller together with the creation of the Admin Module to manage (list, add, edit, delete) to saving time to build basic administrator function.

When accessing the path /admin/codegenerator , you will be asked to select generate from table to continue. Code Generator Select Table

After selecting the table, you start to generate management Model and Controller.

GENERATOR

Code generator allows you to create a Model class and has the corresponding processing lists, add, delete, edit ... similar to the concept in some ORM framework.

Generator will automatically analyze the table you choose and make available copies of class attribute mapping Model name from the table. The system will automatically fill help attribute names. The figure below describes the process of setting fly_post table before initializing class \Model\Post.php

Attached to generate Model Class, generator also generate additional administrative functions of this model, including controller, creating language files, interfaces listed, add, edit ...

Post Table Generate Setting

After save success full.

Post Table Generate Success

Clone this wiki locally