Re: [SMARTY] Help with this

"messju mohr" <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <20060203170508.GC22704@dune>
On Fri, Feb 03, 2006 at 12:54:42PM -0500, Reynier Perez Mira wrote:
> Hi:
> I read the Smarty documentation after po:st any messages on list or Smarty Forum. I need to set up a comparison with some vars came from GET (URL: http://localhost/index.php?var=value). I see this: $smarty.get.var. So if I do this in TPL file: {$smarty.get.var} and this print "value". So if I try this other: 
> {if $smarty.get.var eq "value"}
>   DEBUG: true
> {else}
>   DEBUG: false;
> {/if}
> 
> Nothing happen. How I can compare the $smarty.get.var with the real value for do some things?

you don't want to. you want to do this in php and not in the template.
forget about request vars like $_GET in the template. they are evil.
 
> Regards
> ReynierPM
> 4to. año Ing. Informática
> Usuario registrado de Linux: #310201

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.