diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 18:32:41 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 18:32:41 +0000 |
commit | 61f2970e221f8612e51e7802cc127819c4caa369 (patch) | |
tree | 7d7ef582bf2eb4a17057af98c5aa9d8bbe13dd69 /phpfspot_tmpl.php | |
parent | b97144fa93285fac423d61522bdea6028ac9c566 (diff) |
initial import
git-svn-id: file:///var/lib/svn/phpfspot/trunk@2 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot_tmpl.php')
-rw-r--r-- | phpfspot_tmpl.php | 27 |
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() + +} + +?> |