What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
getConfigVars() — returns the given loaded config variable value
array getConfigVars(string varname);
If no parameter is given, an array of all loaded config variables is returned.
Example 14.26. getConfigVars()
<?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()
.