]>
Commit | Line | Data |
---|---|---|
b09f499c ER |
1 | <?php |
2 | ||
3 | defined('BASEPATH') or die('No direct script access allowed'); | |
4 | ||
5 | // load smarty class | |
6 | require 'Smarty/Smarty.class.php'; | |
7 | ||
8 | // system/application/libraries/smarty_tpl.php | |
9 | class smarty_tpl extends Smarty { | |
10 | function smarty_tpl() { | |
f0cc9300 ZU |
11 | $this->Smarty(); |
12 | // templates folder | |
fb4b60c2 | 13 | $this->setTemplateDir(APPPATH."views/templates"); |
f0cc9300 | 14 | // compiled templates folder |
fb4b60c2 | 15 | $this->setCompileDir(APPPATH."views/templates_c"); |
f0cc9300 | 16 | // cache folder |
fb4b60c2 | 17 | $this->setCacheDir(APPPATH."views/cache"); |
f0cc9300 | 18 | //config folder |
fb4b60c2 | 19 | $this->setConfigDir(APPPATH."views/config"); |
8b91c9cd | 20 | //plugins folder |
fb4b60c2 | 21 | $this->setPluginsDir(array( |
8b91c9cd ZU |
22 | "/usr/share/php/Smarty3/plugins/", |
23 | "/usr/share/php/Smarty3/sysplugins/" | |
fb4b60c2 | 24 | )); |
b09f499c | 25 | |
f0cc9300 ZU |
26 | // template recheck on |
27 | $this->compile_check= true; | |
b09f499c | 28 | |
f0cc9300 ZU |
29 | // cache off |
30 | $this->caching= false; | |
31 | $this->cache_lifetime= 86400; | |
32 | } | |
33 | } |