mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-07 01:30:58 +02:00
- removing support for $cache_attrs for registered plugins, - removing the undocumented {make_nocache} tag and the deprecated {insert} tag and associated code - removing support for a compile_id property on include tags. Fixes a bug in extends: resources by propagating the nocache-hashes between a master template and it's subtemplates in \Smarty\Template::_subTemplateRender. This might need further improvement.
3.0 KiB
3.0 KiB
Smarty Class Variables
These are all of the available Smarty class variables. You can access them directly, or use the corresponding setter/getter methods.
- $auto_literal
- $cache_dir
- $cache_id
- $cache_lifetime
- $cache_locking
- $cache_modified_check
- $caching
- $caching_type
- $compile_check
- $compile_dir
- $compile_id
- $compile_locking
- $compiler_class
- $config_booleanize
- $config_dir
- $config_overwrite
- $config_read_hidden
- $debug_tpl
- $debugging
- $debugging_ctrl
- $default_config_type
- $default_modifiers
- $default_resource_type
- $default_config_handler_func
- $default_template_handler_func
- $error_reporting
- $escape_html
- $force_cache
- $force_compile
- $left_delimiter
- $locking_timeout
- $merge_compiled_includes
- $right_delimiter
- $smarty_debug_id
- $template_dir
- $use_sub_dirs
Note
All class variables have magic setter/getter methods available. setter/getter methods are camelCaseFormat, unlike the variable itself. So for example, you can set and get the $smarty->template_dir variable with $smarty->setTemplateDir($dir) and $dir = $smarty->getTemplateDir() respectively.
Note
See
Changing settings by template
section for how to change Smarty class variables for individual templates.