Customizing the admin generator
The configuration file for a backend module is the generator.yml file, which is located in the apps/backend/modules/store_location/config folder. Open up the generator.yml file for the store_location module. Surprisingly, the file is pretty sketchy.
generator:
class: sfPropelGenerator
param:
model_class: StoreLocation
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: store_location
with_propel_route: 1
config:
actions: ~
fields: ~
list: ~
filter: ~
form: ~
edit: ~
new: ~
The contents of the file specify the class that the module extends, along with the model and theme. What we will do first is customize the list view before moving on to the edit view. By default all of the columns of the StoreLocation model are displayed. We will tidy...