public function initialize(AgaviExecutionContainer $container) { parent::initialize($container); $this->ro = $this->getContext()->getRouting(); $this->rq = $this->getContext()->getRequest(); $this->tm = $this->getContext()->getTranslationManager(); $this->us = $this->getContext()->getUser(); }
public function initialize(AgaviExecutionContainer $container) { parent::initialize($container); if ($this->getAttribute('redirect', false) !== false) { $params = $this->getAttribute('redirect_params', array()); $this->getResponse()->setRedirect($this->getContext()->getRouting()->gen($this->getAttribute('redirect'), $params)); } }