vo2AdminGeneratorPlugin - 0.1.2
The `vo2AdminGenerator` is a symfony plugin that brings the Symfony 1.1 Admin Generator into Symfony 1.0.
You are currently browsing
the website for symfony 1
Brings the Admin Generator of Symfony 1.1 to Symfony 1.0
|Ramy Deeb||lead||moc.2oadiv <<ta>> beedr|
Copyright (c) 2008 Ramy Deeb
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
vo2AdminGenerator is a symfony plugin that brings the Symfony 1.1 Admin Generator into Symfony 1.0.
The main diferences between this two generators is the batch_actions section in the list view.
Install the plugin
> php symfony plugin-install http://plugins.symfony-project.com/vo2AdminGeneratorPlugin
Clear the cache
> php symfony cc
This plugins brings a Pake Task so you can initialize a new Admin Generator Module using this generator, to access this task simply use this command:
> php symfony vo2-init-admin application folder class
The usage of the generator.yml itself is the same as the default Symfony 1.1 Admin Generator.
In the list section of the generator.yml file
list: title: My Admin Screen batch_actions: _deleteSelected: ~
To add your custom action you have to specify the name of the action and the action that will be called
list: title: My Admin Screen batch_actions: _deleteSelected: ~ publish: name: Publish Selected action: publishSelected unpublish: name: Unpublish Selected action: unPublishSelected