/** * Set up the test case */ public function setUp() { parent::setUp(); $tempDir = Enlight_TestHelper::Instance()->TestPath('TempFiles'); $dataDir = Enlight_TestHelper::Instance()->TestPath('DataSets'); $this->manager = new Enlight_Template_Manager(); $this->manager->setCompileDir($tempDir); $this->manager->setCompileId('resource'); $this->manager->setTemplateDir(array($dataDir . 'Template/parent1/', $dataDir . 'Template/parent2/')); }
/** * Initiate smarty template engine */ protected function initTemplateEngine() { $this->_template = clone Shopware()->Template(); $this->_view = $this->_template->createData(); $path = basename($this->_subshop["doc_template"]); $this->_template->setTemplateDir(array('custom' => $path, 'local' => '_emotion_local', 'emotion' => '_emotion')); $this->_template->setCompileId(str_replace('/', '_', $path) . '_' . $this->_subshop['id']); }
/** * This function sets the default template directory into the internal instance of the Enlight_Template_Manager * * @param string|array $path * @return Enlight_View_Default */ public function setTemplateDir($path) { $this->engine->setTemplateDir($path); return $this; }