1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24: | <?php
require('libs/Smarty.class.php');
class smarty_connect extends Smarty
{
function smarty_connect()
{
$fixpath = dirname(__FILE__);
$fixpath = str_replace("\\","/",$fixpath);
$this->Smarty();
$this->template_dir = $fixpath."/templates";
$this->config_dir = $fixpath."/configs";
$this->compile_dir = $fixpath."/compiles";
$this->cache_dir = $fixpath."/cache";
$this->assign('app_name', 'Intranet');
$this->caching = true;
}
}
?>
|