public function __construct() { parent::__construct(); $this->settings = new Varien_Simplexml_Config(); $this->settings->loadFile(Mage::getBaseDir() . $this->_file); if (!$this->settings) { throw new Exception('Can not read theme config file ' . Mage::getBaseDir() . $this->_file); } }