summaryrefslogtreecommitdiff
path: root/include/MySmarty.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/MySmarty.class.php')
-rw-r--r--include/MySmarty.class.php18
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