/** * Store the View object and define the layout and wrapper settings. * * @access public * @param View $View * @return void */ public function initialize(View $View) { if ($this->_initialized) { return; } else { $this->initialized(); } $this->View = $View; $this->_layout = $this->View->getConfig('layout'); $this->_wrapper = $this->View->getConfig('wrapper'); }
/** * Forward the current request to a new action, instead of doing an additional HTTP request. * * @access public * @param string $action * @param array $args * @return mixed */ public final function forward($action, array $args = array()) { $this->View->render($action); $this->configure(array('action' => $action)); $this->dispatch($action, $args); }