Re: Getting value of {assign} variable

From: Date: Mon, 17 Dec 2001 18:31:10 +0000
Subject: Re: Getting value of {assign} variable
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2322@lists.php.net to get a copy of this message
All of the assigned variables are available under $this->_tpl_vars Out of curiosity, wouldn't the flag be passed in a URL instead of assigning to the template? Peter Bowyer wrote: > > Is there any way I can find what value has been assigned to a variable from > within my script? For instance the designer may have put the following in > a template: > {assign var='design' value='popup'} > which means that the page is to be displayed without the usual junk around > it (in a popup window). Now obviously in my script I need to find out if > the designer has set this value, and if so, what to. I can then put the > correct layout around the template's content as required... > > Is this possible? > Thanks, > Peter. > > -- > Maple Design - http://www.mapledesign.co.uk > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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