* @access private */ function __parseOutput($cache) { $cache = parent::__parseOutput($cache); return 'controller->helpers = unserialize(\'' . serialize($this->view->helpers) . '\'); $this->controller->base = \'' . $this->view->base . '\'; $this->controller->layout = \'' . $this->view->layout. '\'; $this->controller->webroot = \'' . $this->view->webroot . '\'; $this->controller->here = \'' . $this->view->here . '\'; $this->controller->params = unserialize(\'' . serialize($this->view->params) . '\'); $this->controller->action = unserialize(\'' . serialize($this->view->action) . '\'); $this->controller->data = unserialize(\'' . serialize($this->view->data) . '\'); $this->controller->themeWeb = \'' . $this->view->themeWeb . '\'; $this->controller->plugin = \'' . $this->view->plugin . '\'; $this->controller->_initComponents(); $this->_tpl_vars = array(); foreach(array_keys($loadedHelpers) as $helper) { $replace = strtolower(substr($helper, 0, 1)); $camelBackedHelper = preg_replace(\'/\\w/\', $replace, $helper, 1); $this->_tpl_vars[$camelBackedHelper] =& ${$camelBackedHelper}; } if (!$this->controller->beforeFilter() === false) { return; } ?>'.$cache; } } ?>