components[] = 'RequestHandler'; } $this->constructClasses(); $this->Components->trigger('initialize', array(&$this)); $this->_set(array( 'cacheAction' => false, 'viewPath' => 'Errors', 'layout' => 'error' )); if (isset($this->RequestHandler)) { $this->RequestHandler->startup($this); } } /** * 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); } } } }