Re: [SMARTY] Use config vars inside .php file (not the .tpl file)
| From: | Marcio Conceicao | Date: | Thu, 13 Mar 2003 21:28:56 +0000 |
| Subject: | Re: [SMARTY] Use config vars inside .php file (not the .tpl file) | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8647@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
get_config_var('foo'), or for a more direct method, FAQ config file section. http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions I use that, convert config vars to PHP vars.$SETTINGS = parse_ini_file("./configs/my.conf"); while($key = key($SETTINGS)){ $$key = current($SETTINGS); //variable variables next($SETTINGS); } That is not smarty way but I think is more usefull. Marcio