On Tue, 31 Mar 2009, sachin jain wrote:
> how to use generator.yml in frontend
Remember, the symfony command-line tool has built-in help:
$ symfony help propel:generate-admin
Usage:
symfony propel:generate-admin [--module="..."] [--theme="..."]
[--singular="..."] [--plural="..."] [--env="..."] application route_or_model
Arguments:
application The application name
route_or_model The route name or the model class
Options:
--module The module name
--theme The theme name (default: admin)
--singular The singular name
--plural The plural name
--env The environment (default: dev)
Description:
The propel:generate-admin task generates a Propel admin module:
./symfony propel:generate-admin frontend Article
The task creates a module in the %frontend% application for the
%Article% model.
The task creates a route for you in the application routing.yml.
You can also generate a Propel admin module by passing a route name:
./symfony propel:generate-admin frontend article
The task creates a module in the %frontend% application for the
%article% route definition found in routing.yml.
For the filters and batch actions to work properly, you need to add
the wildcard option to the route:
article:
class: sfPropelRouteCollection
options:
model: Article
with_wildcard_routes: true
--
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---