Files
smarty/docs/programmers/api-functions/api-get-config-vars.md
Simon Wisselink 428a701b18 Feature/add docs (#689)
* Add converted docs repo

* Set theme jekyll-theme-minimal

* Removed BC docs, added TOC

* Added TOCs, rewrote most important links in documentation. Linked README to new Github Pages site

* some link fixes
2021-12-03 11:59:22 +01:00

692 B

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 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(), {config_load}, configLoad() and getTemplateVars().