constructClasses(); if (count(Router::extensions()) && !$this->Components->attached('RequestHandler') ) { $this->RequestHandler = $this->Components->load('RequestHandler'); } if ($this->Components->enabled('Auth')) { $this->Components->disable('Auth'); } if ($this->Components->enabled('Security')) { $this->Components->disable('Security'); } $this->_set(array('cacheAction' => false, 'viewPath' => 'Errors')); } /** * Escapes the viewVars. * * @return void */ public function beforeRender() { parent::beforeRender(); foreach ($this->viewVars as $key => $value) { if (!is_object($value)) { $this->viewVars[$key] = h($value); } } } }