getConfigVars()
返回给定的已加载配置变量值
说明
数组
getConfigVars
字符
varname
如果没有指定任何参数,则返回所有已加载的 配置变量 的数组。
<?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);
?>
另请参见 clearConfig()
、{config_load}
、configLoad()
和 getTemplateVars()
。