summaryrefslogtreecommitdiff
path: root/include/MySmarty.class.php
blob: 31aa5b4cff92dbe3f78601ecaa5eb4e175507bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

require_once(BASEPATH.'/lib/smarty/Smarty.class.php');

class MySmarty extends Smarty {

    public function __construct() {
        parent::__construct();
        $this->caching = Smarty::CACHING_OFF;
        $this->template_dir = BASEPATH.'/template';
        $this->compile_dir = BASEPATH.'/caches/smarty/compile';
        $this->cache_dir = BASEPATH.'/caches/smarty';
        $this->addPluginsDir(BASEPATH.'/lib/smarty-plugins');
    }

}

?>