]> git.pld-linux.org Git - packages/CodeIgniter-lib-smarty.git/blobdiff - Smarty_tpl.php
- drop obsolete and outdated manual inclusion of rpm macros
[packages/CodeIgniter-lib-smarty.git] / Smarty_tpl.php
index b5b386fab5f060b81895677e8f6a83143136c003..a21d3c937935df28433987606bb9043eca63b3cb 100644 (file)
@@ -10,13 +10,18 @@ class smarty_tpl extends Smarty {
     function smarty_tpl() {
         $this->Smarty();
         // templates folder
-        $this->template_dir=    APPPATH."views/templates";
+        $this->setTemplateDir(APPPATH."views/templates");
         // compiled templates folder
-        $this->compile_dir=     APPPATH."views/templates_c";
+       $this->setCompileDir(APPPATH."views/templates_c");
         // cache folder
-        $this->cache_dir=       APPPATH."views/cache";
+        $this->setCacheDir(APPPATH."views/cache");
         //config folder
-        $this->config_dir=      APPPATH."views/config";
+        $this->setConfigDir(APPPATH."views/config");
+       //plugins folder
+       $this->setPluginsDir(array(
+               "/usr/share/php/Smarty3/plugins/",
+               "/usr/share/php/Smarty3/sysplugins/"
+       ));
 
         // template recheck on
         $this->compile_check=   true;
This page took 0.1362 seconds and 4 git commands to generate.