Just a little question.

From: Date: Thu, 27 Jun 2002 15:26:38 +0000
Subject: Just a little question.
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5073@lists.php.net to get a copy of this message
Hello, I have: 1. index.php: <? $s = new Smarty (); $s->display ("index.tpl"); ?> 2. site.conf bgcolor = white sitename = tratata 3. index.tpl {config_load file="site.conf"} {include file="header.tpl"} ldsfjlkajsflakjsdfljk {include file="footer.tpl"} I've seen that I cannot use configfile values in the header.tpl and footer.tpl files and I have to re-config_load inside it. Is there a way to make configfiles globally available? As an example, It would be great to something like this in the .php file: <? $s = new Smarty (); $s->config_load ("site.conf") $s->display ("sdfsfd.tpl"); ?> in order to make configfile values available in all of the displayed templates. Thank you. -- Best regards, Alex Ilinski (alex@nomicrosoft.ru) http://www.nomicrosoft.ru head manager http://forum.nomicrosoft.ru administrator

« previous php.smarty.general (#5073) next »