mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
rearranged variables at top of script
This commit is contained in:
@@ -43,6 +43,13 @@ class Smarty
|
|||||||
{
|
{
|
||||||
|
|
||||||
// public vars
|
// public vars
|
||||||
|
var $template_dir = "./templates"; // name of directory for templates
|
||||||
|
var $compile_dir = "./templates_c"; // name of directory for compiled templates
|
||||||
|
var $config_dir = "./configs"; // directory where config files are located
|
||||||
|
|
||||||
|
var $global_assign = array( 'SCRIPT_NAME' ); // variables from the GLOBALS array
|
||||||
|
// that are implicitly assigned
|
||||||
|
// to all templates
|
||||||
var $compile_check = true; // whether to check for compiling step or not:
|
var $compile_check = true; // whether to check for compiling step or not:
|
||||||
// This is generally set to false once the
|
// This is generally set to false once the
|
||||||
// application is entered into production and
|
// application is entered into production and
|
||||||
@@ -56,14 +63,11 @@ class Smarty
|
|||||||
// compiling directives. If a cached version
|
// compiling directives. If a cached version
|
||||||
// is available, that will be used regardless
|
// is available, that will be used regardless
|
||||||
// of compile settings.
|
// of compile settings.
|
||||||
var $caching = false; // whether to use caching or not. true/false
|
var $caching = false; // whether to use caching or not. true/false
|
||||||
|
var $cache_dir = "./cache"; // name of directory for template cache
|
||||||
var $cache_lifetime = 3600; // number of seconds cached content will persist.
|
var $cache_lifetime = 3600; // number of seconds cached content will persist.
|
||||||
// 0 = never expires. default is one hour (3600)
|
// 0 = never expires. default is one hour (3600)
|
||||||
|
|
||||||
var $template_dir = "./templates"; // name of directory for templates
|
|
||||||
var $compile_dir = "./templates_c"; // name of directory for compiled templates
|
|
||||||
var $cache_dir = "./cache"; // name of directory for template cache
|
|
||||||
|
|
||||||
|
|
||||||
var $tpl_file_ext = ".tpl"; // template file extentions
|
var $tpl_file_ext = ".tpl"; // template file extentions
|
||||||
|
|
||||||
@@ -74,7 +78,6 @@ class Smarty
|
|||||||
var $left_delimiter = "{"; // template tag delimiters.
|
var $left_delimiter = "{"; // template tag delimiters.
|
||||||
var $right_delimiter = "}";
|
var $right_delimiter = "}";
|
||||||
|
|
||||||
var $config_dir = "./configs"; // directory where config files are located
|
|
||||||
|
|
||||||
var $custom_funcs = array( 'html_options' => 'smarty_func_html_options',
|
var $custom_funcs = array( 'html_options' => 'smarty_func_html_options',
|
||||||
'html_select_date' => 'smarty_func_html_select_date'
|
'html_select_date' => 'smarty_func_html_select_date'
|
||||||
@@ -92,8 +95,6 @@ class Smarty
|
|||||||
'strip_tags' => 'smarty_mod_strip_tags',
|
'strip_tags' => 'smarty_mod_strip_tags',
|
||||||
'default' => 'smarty_mod_default'
|
'default' => 'smarty_mod_default'
|
||||||
);
|
);
|
||||||
var $global_assign = array( 'SCRIPT_NAME'
|
|
||||||
);
|
|
||||||
|
|
||||||
// internal vars
|
// internal vars
|
||||||
var $_error_msg = false; // error messages. true/false
|
var $_error_msg = false; // error messages. true/false
|
||||||
|
@@ -43,6 +43,13 @@ class Smarty
|
|||||||
{
|
{
|
||||||
|
|
||||||
// public vars
|
// public vars
|
||||||
|
var $template_dir = "./templates"; // name of directory for templates
|
||||||
|
var $compile_dir = "./templates_c"; // name of directory for compiled templates
|
||||||
|
var $config_dir = "./configs"; // directory where config files are located
|
||||||
|
|
||||||
|
var $global_assign = array( 'SCRIPT_NAME' ); // variables from the GLOBALS array
|
||||||
|
// that are implicitly assigned
|
||||||
|
// to all templates
|
||||||
var $compile_check = true; // whether to check for compiling step or not:
|
var $compile_check = true; // whether to check for compiling step or not:
|
||||||
// This is generally set to false once the
|
// This is generally set to false once the
|
||||||
// application is entered into production and
|
// application is entered into production and
|
||||||
@@ -56,14 +63,11 @@ class Smarty
|
|||||||
// compiling directives. If a cached version
|
// compiling directives. If a cached version
|
||||||
// is available, that will be used regardless
|
// is available, that will be used regardless
|
||||||
// of compile settings.
|
// of compile settings.
|
||||||
var $caching = false; // whether to use caching or not. true/false
|
var $caching = false; // whether to use caching or not. true/false
|
||||||
|
var $cache_dir = "./cache"; // name of directory for template cache
|
||||||
var $cache_lifetime = 3600; // number of seconds cached content will persist.
|
var $cache_lifetime = 3600; // number of seconds cached content will persist.
|
||||||
// 0 = never expires. default is one hour (3600)
|
// 0 = never expires. default is one hour (3600)
|
||||||
|
|
||||||
var $template_dir = "./templates"; // name of directory for templates
|
|
||||||
var $compile_dir = "./templates_c"; // name of directory for compiled templates
|
|
||||||
var $cache_dir = "./cache"; // name of directory for template cache
|
|
||||||
|
|
||||||
|
|
||||||
var $tpl_file_ext = ".tpl"; // template file extentions
|
var $tpl_file_ext = ".tpl"; // template file extentions
|
||||||
|
|
||||||
@@ -74,7 +78,6 @@ class Smarty
|
|||||||
var $left_delimiter = "{"; // template tag delimiters.
|
var $left_delimiter = "{"; // template tag delimiters.
|
||||||
var $right_delimiter = "}";
|
var $right_delimiter = "}";
|
||||||
|
|
||||||
var $config_dir = "./configs"; // directory where config files are located
|
|
||||||
|
|
||||||
var $custom_funcs = array( 'html_options' => 'smarty_func_html_options',
|
var $custom_funcs = array( 'html_options' => 'smarty_func_html_options',
|
||||||
'html_select_date' => 'smarty_func_html_select_date'
|
'html_select_date' => 'smarty_func_html_select_date'
|
||||||
@@ -92,8 +95,6 @@ class Smarty
|
|||||||
'strip_tags' => 'smarty_mod_strip_tags',
|
'strip_tags' => 'smarty_mod_strip_tags',
|
||||||
'default' => 'smarty_mod_default'
|
'default' => 'smarty_mod_default'
|
||||||
);
|
);
|
||||||
var $global_assign = array( 'SCRIPT_NAME'
|
|
||||||
);
|
|
||||||
|
|
||||||
// internal vars
|
// internal vars
|
||||||
var $_error_msg = false; // error messages. true/false
|
var $_error_msg = false; // error messages. true/false
|
||||||
|
Reference in New Issue
Block a user