/** * New Reading Controller * * @param MvcEvent $event */ public function __construct(MvcEvent $event) { parent::__construct($event); // don't show the header in readinglist // (including errors, which is why it's here in the constructor) $this->response->setVariable('no_header', 'true'); }
public function execute($action) { if ($this->request->getParam('base') != '') { $params = $this->request->getParams(); $params['controller'] = $params['base']; unset($params['base']); $url = $this->request->url_for($params); // print_r($params); echo "<p>$url</p>"; exit; return $this->redirectTo($url); } else { return parent::execute($action); } }