- Smarty 4.1.1 → 4.5.6 (behebt dynamic property deprecations) - Core-Klassen: #[\AllowDynamicProperties] für Admin_role, base, Config, Customer, Customer_group, CustomerGroups, Item, Structure, website - website.class.php: counts[parent_id] initialisieren vor ++ (PHP 8.1) - layout.class.php: HTTP_ACCEPT_LANGUAGE mit isset-Guard - website_init.php: session_status()-Check vor session_start - .htaccess: HTTPS-Redirect via X-Forwarded-Proto (statt SERVER_PORT) - themes/easyshop_advanced/media/: Parent-Theme-Assets nachgezogen - .gitignore: smarty.4.1.1.bak ausschließen
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 templatesection for how to change Smarty class variables for individual templates.