RE: [SMARTY] Problems with compile/cache ID an booleans

From: Date: Tue, 18 Feb 2003 17:01:50 +0000
Subject: RE: [SMARTY] Problems with compile/cache ID an booleans
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7827@lists.php.net to get a copy of this message
>if($pass = "pass" && $user == "user") { ^ | Don't you need another "=" ??? --> if($pass == "pass" && $user == "user") { ;-) Eduardo Morales > -----Original Message----- > From: Joscha Feth [mailto:joscha@feth.com] > Sent: Tuesday, February 18, 2003 4:00 AM > To: 'Smarty' > Subject: [SMARTY] Problems with compile/cache ID an booleans > > Hi, > > If you do something like this (it's just an easy example): > > <?php > > $smarty = &new Smarty; > > if($pass = "pass" && $user == "user") { > $logged_in = true; > } else { > $logged_in = false; > } > > $smarty->display("some.tpl",$logged_in,$logged_in); > ?> > > The compile dir and cache dir is messing up :) > Booleans for cache ID should be converted to int first, with 0 and 1 > everything is working correctly! > > Greets, > Joscha > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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