/** * 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'); }