summaryrefslogtreecommitdiffstats
path: root/phpfspot_tmpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot_tmpl.php')
-rw-r--r--phpfspot_tmpl.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php
new file mode 100644
index 0000000..4dd24e6
--- /dev/null
+++ b/phpfspot_tmpl.php
@@ -0,0 +1,27 @@
+<?php
+
+require 'smarty/libs/Smarty.class.php';
+
+class PHPFSPOT_TMPL extends Smarty {
+
+ var $parent;
+
+ public function __construct($parent)
+ {
+ $this->Smarty();
+ $this->template_dir = $parent->cfg->base_path .'/templates';
+ $this->config_dir = $parent->cfg->base_path .'/smarty_config';
+ $this->compile_dir = $parent->cfg->base_path .'/templates_c';
+ $this->cache_dir = $parent->cfg->base_path .'/smarty_cache';
+
+ } // __construct()
+
+ public function show($template)
+ {
+ $this->display($template);
+
+ } // show()
+
+}
+
+?>