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

clearConfig() — clears assigned config variables

Description

void clearConfig(string var);

This clears all assigned config variables. If a variable name is supplied, only that variable is cleared.

Example 175. clearConfig()



<?php
// clear all assigned config variables.
$smarty->clearConfig();

// clear one variable
$smarty->clearConfig('foobar');
?>

   

See also getConfigVars(), config variables, config files, {config_load}, configLoad() and clearAssign().

Smarty Template Engine