Saturday, November 12, 2011

Change =yourfield Link to Show View with sfAdminThemejRollerPlugin

  1. Change class to jRollerDoctrineGenerator in generator.yml.
  2. Add extra: [show] to the param section.
That's all. Clear cache.

Show view does not accept actions parameter in sfAdminThemejRollerPlugin

Change getShowActions() method in plugins / sfAdminThemejRollerPlugin / data / generator / sfDoctrineModule / joller / parts / showConfiguration.php to this:
public function getShowActions()
    return <?php echo isset($this->config['show']['actions']) ? $this->asPhp($this->config['show']['actions']) : "array(  '_list' => NULL,  '_edit' => NULL, '_delete' => NULL)" ?>;
    <?php unset($this->config['show']['actions']) ?>

Source and Thanks to Ton Sharp.

Monday, November 7, 2011

Session Cookie Name and Timeout in Symfony

In apps/frontend or backend or other/config/factories.yml... put this to the all section:
    class: myUser
      timeout: 43200
    class: sfSessionStorage
      session_name: frontend
Don't forget to clear the cache and set the value of session.gc_maxlifetime to the same or a bit higher than 43200 in php.ini.