vo2AdminGeneratorPlugin
by rDeeb on Nov.10, 2008, under PHP, Plugins, Symfony
The vo2AdminGeneratorPlugin brings the Symfony 1.1 Admin Generator to Symfony 1.0.
This Plugin is just a port of the code of the Symfony 1.1 Admin Generator, so the credits goes to Fabien Potencier, and some code also from François Zaninotto.
This plugin brings a Pake Task to initialize a new module with the generator, to access this task just write down:
php symfony vo2-init-admin application folder class
Any bugs, please don’t hesitate on contacting me. In next releases of the plugin I’m going to extend a bit the Admin Gen, so if there is any special requests feel free to ask them.

November 19th, 2008 on 4:16 pm
I’m trying to inatall it. It says:
The template “/_list_td_batch_actions.php” does not exist
It doesn’t bundled to package, and I can’t get it working.
PLease, help me
November 19th, 2008 on 5:09 pm
Well, it’s in PEAR package. I have added file from Symfony 1.1 and it seems working. Please, update the package
November 19th, 2008 on 5:34 pm
Also error in class compatTools. Check updated version:
<?php
class compatTools
{
public static function getOptiontoAction($actionName, $params)
{
$options = isset($params['params']) ? sfToolkit::stringToArray($params['params']) : array();
// default values
if ($actionName[0] == ‘_’)
{
$actionName = substr($actionName, 1);
if ($actionName == ‘deleteSelected’)
{
$params['name'] = ‘Delete Selected’;
}
}
$name = isset($params['name']) ? $params['name'] : $actionName;
$options['value'] = $actionName;
$phpOptions = var_export($options, true);
return ‘[?php echo content_tag(\'option\', __(\''.$name.'\')'.($options ? ', '.$phpOptions : '').') ?]‘;
}
}
November 30th, 2008 on 7:08 pm
[...] vo2AdminGeneratorPlugin [...]
January 9th, 2009 on 2:46 am
hi,
I meet the same problem.and the symfony version is 1.0.11.but when I change the generator.yml batch actions from
batch_actions:
_delete: ~
change to
batch_actions:
delete:
label: Delete
action: deleteSelected
it works well.
is that ok?
thanks very much.