diff options
author | emkael <emkael@tlen.pl> | 2016-10-11 14:01:29 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-10-11 14:01:29 +0200 |
commit | 51609351f2c4b5082b7e6f0744cd3811c325303f (patch) | |
tree | 739015e9ec69bc185ebe30db21369ae0b8b692ce /include/MySmarty.class.php | |
parent | 8d1b0dad63e3906efa9393ef01d08b77d83417b5 (diff) |
* initial template
Diffstat (limited to 'include/MySmarty.class.php')
-rw-r--r-- | include/MySmarty.class.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/MySmarty.class.php b/include/MySmarty.class.php new file mode 100644 index 0000000..31aa5b4 --- /dev/null +++ b/include/MySmarty.class.php @@ -0,0 +1,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'); + } + +} + +?>
\ No newline at end of file |