| Recommend this page to a friend! |
| Packages of Michael Beck | Xoops 2.5 | htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-config-load.md | Download |
|
|||||||||||||||||||||
{config_load}
Attributes| Attribute Name | Required | Description | |----------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | file | Yes | The name of the config file to include | | section | No | The name of the section to load | | scope | no | How the scope of the loaded variables are treated, which must be one of local, parent or global. local means variables are loaded into the local template context. parent means variables are loaded into both the local context and the parent template that called it. global means variables are available to all templates. | ExamplesThe and the template Config Files may also contain sections. You can load
variables from within a section with the added attribute > Note
>
> Config file sections and the built-in template function called
>
See See also the config files page, config variables page,
|