Files
smarty/libs/sysplugins/smarty_method_config_load.php
Uwe.Tews 94b80e892b - renamed function names of autoloaded Smarty methods to Smarty_Method_....
- new security_class property (default is Smarty_Security)
2009-11-03 20:38:38 +00:00

28 lines
562 B
PHP

<?php
/**
* Smarty methode Config_Load
*
* Loads a config file
*
* @package Smarty
* @subpackage Config
* @author Uwe Tews
*/
/**
* load a config file optionally load just selected sections
*
* @param object $smarty
* @param string $config_file filename
* @param mixed $sections array of section names, single section or null
*/
function Smarty_Method_Config_Load($smarty, $config_file, $sections = null)
{
// load Config class
$config = new Smarty_Internal_Config($config_file, $smarty);
$config->loadConfigVars($sections, $smarty);
}
?>