Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
configLoad()
2
 
3
loads config file data and assigns it to the template
4
 
5
Description
6
===========
7
 
8
void
9
 
10
configLoad
11
 
12
string
13
 
14
file
15
 
16
string
17
 
18
section
19
 
20
This loads [config file](#config.files) data and assigns it to the
21
template. This works identically to the template
22
[`{config_load}`](#language.function.config.load) function.
23
 
24
> **Note**
25
>
26
> As of Smarty 2.4.0, assigned template variables are kept across
27
> invocations of [`fetch()`](#api.fetch) and
28
> [`display()`](#api.display). Config vars loaded from `configLoad()`
29
> are always global in scope. Config files are also compiled for faster
30
> execution, and respect the [`$force_compile`](#variable.force.compile)
31
> and [`$compile_check`](#variable.compile.check) settings.
32
 
33
 
34
    <?php
35
    // load config variables and assign them
36
    $smarty->configLoad('my.conf');
37
 
38
    // load a section
39
    $smarty->configLoad('my.conf', 'foobar');
40
    ?>
41
 
42
 
43
 
44
See also [`{config_load}`](#language.function.config.load),
45
[`getConfigVars()`](#api.get.config.vars),
46
[`clearConfig()`](#api.clear.config), and
47
[`config variables`](#language.config.variables)