3 defined('BASEPATH') or die('No direct script access allowed');
6 require 'Smarty/Smarty.class.php';
8 // system/application/libraries/smarty_tpl.php
9 class smarty_tpl extends Smarty {
10 function smarty_tpl() {
13 $this->setTemplateDir(APPPATH."views/templates");
14 // compiled templates folder
15 $this->setCompileDir(APPPATH."views/templates_c");
17 $this->setCacheDir(APPPATH."views/cache");
19 $this->setConfigDir(APPPATH."views/config");
21 $this->setPluginsDir(array(
22 "/usr/share/php/Smarty3/plugins/",
23 "/usr/share/php/Smarty3/sysplugins/"
26 // template recheck on
27 $this->compile_check= true;
30 $this->caching= false;
31 $this->cache_lifetime= 86400;