Open Source @ VidaO2.com

vo2AdminGeneratorPlugin

by rDeeb on Nov.10, 2008, under PHP, Plugins, Symfony

The vo2AdminGeneratorPlugin brings the Symfony 1.1 Admin Generator to Symfony 1.0.

vo2 Admin Generator

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.

:, , ,
5 comments for this entry:
  1. Davert

    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

  2. Davert

    Well, it’s in PEAR package. I have added file from Symfony 1.1 and it seems working. Please, update the package

  3. Davert

    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 : '').') ?]‘;
    }
    }

  4. Cooldark51

    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.

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...