3 require_once("library/Smarty/libs/Smarty.class.php");
5 class FriendicaSmarty extends Smarty {
10 function __construct() {
11 parent::__construct();
15 //$this->root = $_SERVER['DOCUMENT_ROOT'] . '/';
18 $this->setTemplateDir($this->root . 'view/smarty3/');
19 $this->setCompileDir($this->root . 'view/smarty3/compiled/');
20 $this->setConfigDir($this->root . 'view/smarty3/config/');
21 $this->setCacheDir($this->root . 'view/smarty3/cache/');
23 $this->left_delimiter = $a->smarty3_ldelim;
24 $this->right_delimiter = $a->smarty3_rdelim;
27 function parsed($template = '') {
29 return $this->fetch('string:' . $template);
31 return $this->fetch('file:' . $this->root . $this->filename);