function __construct() { $viewsPath = Settings::getViewsPath(); $module = Module::get(); $templatesDir = sprintf('%s/%s', $viewsPath, $module); $this->smarty = new Smarty(); $this->smarty->compile_dir = Settings::getTemplateCompilePath(); $this->smarty->cache_dir = Settings::getTemplateCachePath(); $this->smarty->setTemplateDir($templatesDir); $this->smarty->addPluginsDir(dirname(__FILE__) . '/Plugin/'); }