public function __construct($templateFile, $smConf = array(), $filter = true) { $this->template = $templateFile; $this->smarty = new Smarty(); $template_dir = array('Module', 'themes/default', 'themes'); $this->smarty->template_dir = $template_dir; array_walk($this->smarty->template_dir, array("Core_View", "addPath"), INCLUDE_PATH); $this->smarty->plugins_dir = array("Core/SmartyPlugins", "libraries/Smarty/plugins/"); array_walk($this->smarty->plugins_dir, array("Core_View", "addPath"), INCLUDE_PATH); $this->smarty->compile_dir = "tmp/templates_c"; Core_View::addPath($this->smarty->compile_dir, null, USER_PATH); $this->smarty->cache_dir = "tmp/cache"; Core_View::addPath($this->smarty->cache_dir, null, USER_PATH); /* $error_reporting = $smConf->error_reporting; if($error_reporting != (string)(int)$error_reporting) { $error_reporting = self::bitwise_eval($error_reporting); } $this->smarty->error_reporting = $error_reporting; $this->smarty->assign('tag', 'Core=' . Version::VERSION); if($filter) { $this->smarty->load_filter('output', 'cachebuster'); $this->smarty->load_filter('output', 'ajaxcdn'); $this->smarty->load_filter('output', 'trimwhitespace'); } */ }