/** * Initializes the configuration. * * @param string $xml File or XML text representing the configuration. * @param string|null $section Which section of the configuration to load. */ public function __construct($xml, $section = null) { parent::__construct($xml, $section, true); if (!isset($this->paths)) { $this->paths = new Zend_Config(array(), true); } $this->paths->application = realpath(dirname(__FILE__) . '/../../..'); $this->paths->data = realpath($this->paths->application . '/data'); $this->paths->templates = realpath($this->paths->data . '/themes'); $this->paths->themes = $this->paths->templates; $this->mergeTemplateConfigurations(); }