improved the welcome text
[phpfspot.git] / phpfspot_tmpl.php
1 <?php
2
3 require 'smarty/libs/Smarty.class.php';
4
5 class PHPFSPOT_TMPL extends Smarty {
6
7    var $parent;
8
9    public function __construct($parent)
10    {
11       $this->Smarty();
12       $this->template_dir = $parent->cfg->base_path .'/templates';
13       $this->compile_dir  = $parent->cfg->base_path .'/templates_c';
14       $this->config_dir   = $parent->cfg->base_path .'/smarty_config';
15       $this->cache_dir    = $parent->cfg->base_path .'/smarty_cache';
16
17    } // __construct()
18
19    public function show($template)
20    {
21       $this->display($template);
22
23    } // show()
24
25 }
26
27 ?>