logo       

Re: [SMARTY] Accessing Assigned Variables: msg#00464

php.smarty.general

Subject: Re: [SMARTY] Accessing Assigned Variables

Nice! Is this linked on the Smarty page someplace and I missed it?

Also, I'm using $smarty->_tpl_vars['var1'] until I can figure a better way.


Peter Billen wrote:

It is,
http://marc.theaimsgroup.com/?l=smarty-general&w=2&r=1&q=b&s=search+here

Peter

-----Original Message-----
From: Darryl Bleau [mailto:darrylbleau@xxxxxxxxxxxxxx] Sent: vrijdag 31 januari 2003 20:44
To: Smarty (E-mail)
Subject: [SMARTY] Accessing Assigned Variables

I know I saw this in the mailing list someplace, but I can't find it. (It would be nice if the mailing list archive were searchable! :) ).

in my php:

$smarty->assign("var1","data");

then later, I want to do something like this:

if ($smarty.variables.var1 == "data")
...

possible?




--
Darryl Bleau, B.Sc CS, A+
Creative Director
Submersion Corporation
Submersion.com
1-780-608-1616



--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise