tpl = new Smarty(); $this->tpl->setCompileDir($root . '/core/template/templates_c'); $this->tpl->setCacheDir($root . '/core/template/cache'); $this->tpl->setConfigDir($root . '/core/template/config'); if ($config["caching"] == 1) { $this->tpl->setCaching(Smarty::CACHING_LIFETIME_SAVED); } $this->tpl->assign("path", $config["path"] . "/"); } function __destruct() { } function meta() { } }