PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Name

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.

Example 188. 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().

Smarty Template Engine