Thursday, June 4, 2009

Symfony studying on day3

$ php symfony propel:generate-module --with-show --non-verbose-templates frontend job JobeetJob

propel:generate-module 命令为工作模型JobeetJob 在frontend应用程序中生成了名为 job的模块。和大多数symfony命令一样,它在apps/frontend/modules/job 下创建了一些文件和目录
generate a module including action and template.

Directory Description
actions/ The module actions
templates/ The module templates

The actions/actions.class.php file defines all the available action for the job module:

Action name Description
index Displays the records of the table
show Displays the fields and their values for a given record
new Displays a form to create a new record
create Creates a new record
edit Displays a form to edit an existing record
update Updates a record according to the user submitted values
delete Deletes a given record from the table

No comments: