Esempio n. 1
0
 /**
  * Load the layout for the design area
  * The mehotd will load layout.xml the theme directory and blocks will be initialized
  * 
  * @return Core_Model_Layout 
  */
 public function loadLayoutConfig()
 {
     $this->_layoutConfigFile = App_Main::getDesign()->getLayoutFilename('layout.xml');
     if (!file_exists($this->_layoutConfigFile)) {
         App_Main::throwException('Layout config file not found. Cannot continue');
         exit;
     }
     $this->_blocks = array();
     $this->_elementClass = App_Main::getModelClassName('core/layout_element');
     $this->setXml(simplexml_load_file($this->_layoutConfigFile, $this->_elementClass)->default->block);
     $this->generateBlocks();
     return $this;
 }