Problems with compile/cache ID an booleans
| From: | Joscha Feth | Date: | Tue, 18 Feb 2003 11:59:59 +0000 |
| Subject: | Problems with compile/cache ID an booleans | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7819@lists.php.net to get a copy of this message | ||
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