| 148 |
lars |
1 |
Smarty Class Variables {#api.variables}
|
|
|
2 |
======================
|
|
|
3 |
|
|
|
4 |
These are all of the available Smarty class variables. You can access
|
|
|
5 |
them directly, or use the corresponding setter/getter methods.
|
|
|
6 |
|
|
|
7 |
- [$allow_php_templates](./api-variables/variable-allow-php-templates.md)
|
|
|
8 |
- [$auto_literal](./api-variables/variable-auto-literal.md)
|
|
|
9 |
- [$autoload_filters](./api-variables/variable-autoload-filters.md)
|
|
|
10 |
- [$cache_dir](./api-variables/variable-cache-dir.md)
|
|
|
11 |
- [$cache_id](./api-variables/variable-cache-id.md)
|
|
|
12 |
- [$cache_lifetime](./api-variables/variable-cache-lifetime.md)
|
|
|
13 |
- [$cache_locking](./api-variables/variable-cache-locking.md)
|
|
|
14 |
- [$cache_modified_check](./api-variables/variable-cache-modified-check.md)
|
|
|
15 |
- [$caching](./api-variables/variable-caching.md)
|
|
|
16 |
- [$caching_type](./api-variables/variable-caching-type.md)
|
|
|
17 |
- [$compile_check](./api-variables/variable-compile-check.md)
|
|
|
18 |
- [$compile_dir](./api-variables/variable-compile-dir.md)
|
|
|
19 |
- [$compile_id](./api-variables/variable-compile-id.md)
|
|
|
20 |
- [$compile_locking](./api-variables/variable-compile-locking.md)
|
|
|
21 |
- [$compiler_class](./api-variables/variable-compiler-class.md)
|
|
|
22 |
- [$config_booleanize](./api-variables/variable-config-booleanize.md)
|
|
|
23 |
- [$config_dir](./api-variables/variable-config-dir.md)
|
|
|
24 |
- [$config_overwrite](./api-variables/variable-config-overwrite.md)
|
|
|
25 |
- [$config_read_hidden](./api-variables/variable-config-read-hidden.md)
|
|
|
26 |
- [$debug_tpl](./api-variables/variable-debug-template.md)
|
|
|
27 |
- [$debugging](./api-variables/variable-debugging.md)
|
|
|
28 |
- [$debugging_ctrl](./api-variables/variable-debugging-ctrl.md)
|
|
|
29 |
- [$default_config_type](./api-variables/variable-default-config-type.md)
|
|
|
30 |
- [$default_modifiers](./api-variables/variable-default-modifiers.md)
|
|
|
31 |
- [$default_resource_type](./api-variables/variable-default-resource-type.md)
|
|
|
32 |
- [$default_config_handler_func](./api-variables/variable-default-config-handler-func.md)
|
|
|
33 |
- [$default_template_handler_func](./api-variables/variable-default-template-handler-func.md)
|
|
|
34 |
- [$direct_access_security](./api-variables/variable-direct-access-security.md)
|
|
|
35 |
- [$error_reporting](./api-variables/variable-error-reporting.md)
|
|
|
36 |
- [$escape_html](./api-variables/variable-escape-html.md)
|
|
|
37 |
- [$force_cache](./api-variables/variable-force-cache.md)
|
|
|
38 |
- [$force_compile](./api-variables/variable-force-compile.md)
|
|
|
39 |
- [$left_delimiter](./api-variables/variable-left-delimiter.md)
|
|
|
40 |
- [$locking_timeout](./api-variables/variable-locking-timeout.md)
|
|
|
41 |
- [$merge_compiled_includes](./api-variables/variable-merge-compiled-includes.md)
|
|
|
42 |
- [$plugins_dir](./api-variables/variable-plugins-dir.md)
|
|
|
43 |
- [$right_delimiter](./api-variables/variable-right-delimiter.md)
|
|
|
44 |
- [$smarty_debug_id](./api-variables/variable-smarty-debug-id.md)
|
|
|
45 |
- [$template_dir](./api-variables/variable-template-dir.md)
|
|
|
46 |
- [$trusted_dir](./api-variables/variable-trusted-dir.md)
|
|
|
47 |
- [$use_include_path](./api-variables/variable-use-include-path.md)
|
|
|
48 |
- [$use_sub_dirs](./api-variables/variable-use-sub-dirs.md)
|
|
|
49 |
|
|
|
50 |
> **Note**
|
|
|
51 |
>
|
|
|
52 |
> All class variables have magic setter/getter methods available.
|
|
|
53 |
> setter/getter methods are camelCaseFormat, unlike the variable itself.
|
|
|
54 |
> So for example, you can set and get the \$smarty-\>template\_dir
|
|
|
55 |
> variable with \$smarty-\>setTemplateDir(\$dir) and \$dir =
|
|
|
56 |
> \$smarty-\>getTemplateDir() respectively.
|
|
|
57 |
|
|
|
58 |
> **Note**
|
|
|
59 |
>
|
|
|
60 |
> See
|
|
|
61 |
> [`Changing settings by template`](./advanced-features/advanced-features-template-settings.md)
|
|
|
62 |
> section for how to change Smarty class variables for individual
|
|
|
63 |
> templates.
|