PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-get-config-vars.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-get-config-vars.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-get-config-vars.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 692 bytes
 

Contents

Class file image Download

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