Re: Accessing config vars in PHP.

From: Date: Mon, 29 Oct 2001 15:20:24 +0000
Subject: Re: Accessing config vars in PHP.
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1747@lists.php.net to get a copy of this message
On Mon, 29 Oct 2001, Michal Zajaczkowski wrote: > Hi > > Is there a way of accessing assigned config vars in the PHP script? > I have done it by $smarty->configs[0][varname], but it's not quite > correct, since the "configs" array is a "private" var of the Smarty > class. > Is there any correct way of doing that? Since the vars will be assigned only after the template is executed (either upon fetch or display), are you sure you want to do this? -Andrei For society, it's probably a good thing that engineers value function over appearance. For example, you wouldn't want engineers to build nuclear power plants that only _look_ like they would keep all the radiation inside. (Scott Adams - The Dilbert principle)

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