
Comparing changes: https://github.com/smarty-php/smarty/compare/v4.3.1...v4.4.1 It is noticeable that Smarty 4.3.1 does not officially support PHP 8.3. Is only supported with 4.4.0. Remark: During tests with Smarty 4.5.1, it was noticed that the following warning occurs: Deprecated: Using the unregistered function "function_exists" in a template is deprecated and will be removed in a future version. Use Smarty::registerPlugin to explicitly register a custom modifier. As of Smarty 5.X.X, templates must be revised again. The Smarty release 5.0.2 is already officially available. However, integration into FlatPress is not entirely trivial.
3.4 KiB
3.4 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.
- $allow_php_templates
- $auto_literal
- $autoload_filters
- $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
- $direct_access_security
- $error_reporting
- $escape_html
- $force_cache
- $force_compile
- $left_delimiter
- $locking_timeout
- $merge_compiled_includes
- $plugins_dir
- $right_delimiter
- $smarty_debug_id
- $template_dir
- $trusted_dir
- $use_include_path
- $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.