Re: [SMARTY] Just a little question.

From: Date: Thu, 27 Jun 2002 15:25:16 +0000
Subject: Re: [SMARTY] Just a little question.
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5074@lists.php.net to get a copy of this message
Alex ILINSKI wrote:
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.
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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