mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-29 23:47:15 +02:00
Feature/add docs (#689)
* Add converted docs repo * Set theme jekyll-theme-minimal * Removed BC docs, added TOC * Added TOCs, rewrote most important links in documentation. Linked README to new Github Pages site * some link fixes
This commit is contained in:
35
docs/programmers/api-functions/api-clear-config.md
Normal file
35
docs/programmers/api-functions/api-clear-config.md
Normal file
@ -0,0 +1,35 @@
|
||||
clearConfig()
|
||||
|
||||
clears assigned config variables
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
void
|
||||
|
||||
clearConfig
|
||||
|
||||
string
|
||||
|
||||
var
|
||||
|
||||
This clears all assigned [config variables](#language.config.variables).
|
||||
If a variable name is supplied, only that variable is cleared.
|
||||
|
||||
|
||||
<?php
|
||||
// clear all assigned config variables.
|
||||
$smarty->clearConfig();
|
||||
|
||||
// clear one variable
|
||||
$smarty->clearConfig('foobar');
|
||||
?>
|
||||
|
||||
|
||||
|
||||
See also [`getConfigVars()`](#api.get.config.vars),
|
||||
[`config variables`](#language.config.variables),
|
||||
[`config files`](#config.files),
|
||||
[`{config_load}`](#language.function.config.load),
|
||||
[`configLoad()`](#api.config.load) and
|
||||
[`clearAssign()`](#api.clear.assign).
|
Reference in New Issue
Block a user