VENDOR_PATH.'smarty'.DS.'Smarty.class.php'); Registry()->tpl = $_template = new Smarty(); // Smarty default config $_template->template_dir = Config()->VIEWS_PATH; $_template->compile_dir = Config()->VIEWS_COMPILE_PATH; $_template->cache_dir = Config()->VIEWS_CACHE_PATH; $_template->config_dir = Config()->VIEWS_CONFIG_PATH; $_template->plugins_dir = array(Config()->VENDOR_PATH.'smarty'.DS.'plugins'); // support for custom plugins so they will be in separate folder $_template->plugins_dir[] = Config()->VENDOR_PATH.'smarty'.DS.'custom_plugins'; $_template->assign('_root', Config()->COOKIE_PATH); $_template->assign('_public', Config()->PUBLIC_URL); $_template->assign('_server_name', $_SERVER['SERVER_NAME']); $controller = &ActionController::recognizeRoute(); $_template->assign('_locale', Registry()->locale); $_template->assign('_current_lng', substr(Registry()->locale, 0, 2)); $_template->assign('_languages', Config()->LOCALE_SHORTCUTS); $controller->processRoute(); ?>