Changeset 3195
- Timestamp:
- 01/08/07 19:01:41 (6 years ago)
- Files:
-
- plugins/sfControlPanelPlugin/README (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfControlPanelPlugin/README
r3149 r3195 17 17 {{{ 18 18 dev: 19 enabled_modules: [default, sfControlPanel] 19 .settings: 20 enabled_modules: [default, sfControlPanel] 20 21 }}} 21 22 … … 78 79 The `sfControlPanel` plugin proposes a data explorer that will use the connection settings of your `databases.yml` to connect to a database and display the list of tables it contains. Based on the admin generator, each table can be browsed, and each record can be edited or deleted, pretty much like what phpMyAdmin offers. 79 80 80 Each table explorer being automatically generated by symfony, you can add custom generator settings to alter which fields, filters, actions and sort criterias are used, the asme way as you usually customized an admin generated theme. For that purpose, create a `sfControlPanel_generator.yml` file in the project's `config/folder`, and add in any generator customization you want. The primary labels are classes.81 Each table explorer being automatically generated by symfony, you can add custom generator settings to alter which fields, filters, actions and sort criterias are used, the same way as you usually customized an admin generated theme. For that purpose, create a `sfControlPanel_generator.yml` file in the project's `config/folder`, and add in any generator customization you want. The primary labels are classes. 81 82 82 83 So for instance, if your database contains an `article` table, you can customize the fields displayed in the `list` view by writing in the `config/sfControlPanel_generator.yml`: … … 113 114 == Known limitations == 114 115 116 If your routing policy is not compatible with the default rules (`/:module` and `/:module/:action`), you have to define specific rules for the `sfControlPanel` module by adding at the beginning of your `routing.yml`: 117 {{{ 118 sfControlPanel_index: 119 url: /sfControlPanel 120 param: { module: sfControlPanel, action: index } 121 122 sfControlPanel: 123 url: /sfControlPanel/:action/* 124 param: { module: sfControlPanel } 125 }}} 126 115 127 The plugin is not compatible with projects having a custom directory structure. 116 128 … … 118 130 119 131 Due to a bug in the view config handler, the presentation of the `sfControlPanel` plugin will be buggy if your application's `view.yml` contains default stylesheets. 132