Example #1
0
 protected static function _init($smarty)
 {
     $smarty->template_dir = array('.' . DS . 'templates' . DS);
     $smarty->compile_dir = '.' . DS . 'templates_c' . DS;
     $smarty->plugins_dir = array(SMARTY_PLUGINS_DIR);
     $smarty->cache_dir = '.' . DS . 'cache' . DS;
     $smarty->config_dir = array('.' . DS . 'configs' . DS);
     $smarty->template_objects = array();
     $smarty->config_vars = array();
     Smarty::$global_tpl_vars = array();
     $smarty->template_functions = array();
     $smarty->tpl_vars = array();
     $smarty->force_compile = false;
     $smarty->force_cache = false;
     $smarty->auto_literal = true;
     $smarty->caching = false;
     $smarty->debugging = false;
     Smarty::$_smarty_vars = array();
     $smarty->registered_plugins = array();
     $smarty->default_plugin_handler_func = null;
     $smarty->registered_objects = array();
     $smarty->default_modifiers = array();
     $smarty->registered_filters = array();
     $smarty->autoload_filters = array();
     $smarty->escape_html = false;
     $smarty->use_sub_dirs = false;
     $smarty->config_overwrite = true;
     $smarty->config_booleanize = true;
     $smarty->config_read_hidden = true;
     $smarty->security_policy = null;
     $smarty->left_delimiter = '{';
     $smarty->right_delimiter = '}';
     $smarty->php_handling = Smarty::PHP_PASSTHRU;
     $smarty->enableSecurity();
     $smarty->error_reporting = null;
     $smarty->error_unassigned = true;
     $smarty->caching_type = 'file';
     $smarty->cache_locking = false;
     $smarty->cache_id = null;
     $smarty->compile_id = null;
     $smarty->default_resource_type = 'file';
 }