aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/programmers/api-functions/api-get-config-vars.md
blob: f252e8674321803210a28b2615f1a79a34682402 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
getConfigVars()

returns the given loaded config variable value

Description
===========

array

getConfigVars

string

varname

If no parameter is given, an array of all loaded [config
variables](#language.config.variables) is returned.


    <?php

    // get loaded config template var #foo#
    $myVar = $smarty->getConfigVars('foo');

    // get all loaded config template vars
    $all_config_vars = $smarty->getConfigVars();

    // take a look at them
    print_r($all_config_vars);
    ?>

       

See also [`clearConfig()`](#api.clear.config),
[`{config_load}`](#language.function.config.load),
[`configLoad()`](#api.config.load) and
[`getTemplateVars()`](#api.get.template.vars).