
Updated calls to current Smarty API (register_function()/register_modifier()/register_block() -> registerPlugin(); assign_by_ref() -> assignByRef()). Fixed file includes in templates with quotes. Removed SmartyValidate.class.php includes. Still work in progress as some errors still appear!
692 B
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()
.