_set(Router::getPaths()); $this->request = $this->params = Router::getRequest(false); $this->constructClasses(); $this->Components->trigger('initialize', array(&$this)); $this->_set(array('cacheAction' => false, 'viewPath' => 'errors')); } /** * Escapes the viewVars. * * @return void */ function beforeRender() { foreach ($this->viewVars as $key => $value) { $this->viewVars[$key] = h($value); } } }