]> git.pld-linux.org Git - packages/CodeIgniter-lib-smarty.git/blame_incremental - Smarty_tpl.php
- drop obsolete and outdated manual inclusion of rpm macros
[packages/CodeIgniter-lib-smarty.git] / Smarty_tpl.php
... / ...
CommitLineData
1<?php
2
3defined('BASEPATH') or die('No direct script access allowed');
4
5// load smarty class
6require 'Smarty/Smarty.class.php';
7
8// system/application/libraries/smarty_tpl.php
9class smarty_tpl extends Smarty {
10 function smarty_tpl() {
11 $this->Smarty();
12 // templates folder
13 $this->setTemplateDir(APPPATH."views/templates");
14 // compiled templates folder
15 $this->setCompileDir(APPPATH."views/templates_c");
16 // cache folder
17 $this->setCacheDir(APPPATH."views/cache");
18 //config folder
19 $this->setConfigDir(APPPATH."views/config");
20 //plugins folder
21 $this->setPluginsDir(array(
22 "/usr/share/php/Smarty3/plugins/",
23 "/usr/share/php/Smarty3/sysplugins/"
24 ));
25
26 // template recheck on
27 $this->compile_check= true;
28
29 // cache off
30 $this->caching= false;
31 $this->cache_lifetime= 86400;
32 }
33}
This page took 0.065108 seconds and 5 git commands to generate.