/** * Initialize important variables * @param Enlight_Event_EventArgs $arguments */ protected function init(Enlight_Event_EventArgs $arguments) { $this->controller = $arguments->getSubject(); $this->request = $this->controller->Request(); $this->view = $this->controller->View(); $this->helper->setRequest($this->request); }