components) && !in_array('RequestHandler', $this->components, true) ) { $this->components[] = 'RequestHandler'; } $this->constructClasses(); 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); } } } }