コード例 #1
0
ファイル: PluginTest.php プロジェクト: nvdnkpr/Enlight
 /**
  * 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/'));
 }
コード例 #2
0
ファイル: Document.php プロジェクト: GerDner/luck-docker
 /**
  * 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']);
 }
コード例 #3
0
ファイル: Default.php プロジェクト: ClaudioThomas/shopware-4
 /**
  * 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;
 }