Re: [SMARTY] assigned variable namespace updates

From: Date: Thu, 12 Dec 2002 18:07:52 +0000
Subject: Re: [SMARTY] assigned variable namespace updates
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6777@lists.php.net to get a copy of this message
That is right. The wrong thing would be to use variables not assigned... but I think the only way that could happen is with an include_php function that doesn't properly assign them, just declares them. So for the most part, it is a non-issue. On Thu, 2002-12-12 at 11:56, Rasmus Schultz wrote: > >As a consequence, there aren't issues with variable clashing in PHP > >namespace with assigned variables. We have to be careful with this, > >hopefully no one is using variables in a template that are not > >explicitly assigned. If you are, they won't show up anymore! > > can you give an example of what it is we shouldn't do? > > I always just $smarty->assign("data",$data) - that's the correct way > to do it, right? as long as you're not doing other weird things, > that should still work? > -- Monte Ohrt <monte@ispi.net>

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