Re[4]: [SMARTY] form and cache

From: Date: Sun, 23 Mar 2003 17:02:59 +0000
Subject: Re[4]: [SMARTY] form and cache
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8852@lists.php.net to get a copy of this message
Hello Jacques, Thanks, but it's same, no ? if (isset($_POST[var])) { $smarty->caching=false; ... } or $smarty->caching=false; if (isset($_POST[var])) { ... } else { $smarty->caching=true; } but my problem is with if(!$smarty->>is_cached('fr/reservation.tpl')) { $smarty->config_load('smarty.conf'); $smarty->assign... } who is allways the same, but i can't caching with $_POST because my antiflood. $_POST can the same but it can flood. ps: si tu comprends pas mon anglais, je te le refais en francais en prive ;)) -- Cordialement, Elgi Le dimanche 23 mars 2003 à 17:52:36, vous écriviez : JJ> Hello Elgi, JJ> Sunday, March 23, 2003, 5:12:52 AM, you wrote: E>> Hello Elgi, E>> i have now in form.php : E>> if (isset($_POST[var])) { E>> $smarty->caching=false; E>> ... E>> } JJ> if(!$smarty->>is_cached('fr/reservation.tpl')) { E>> $smarty->config_load('smarty.conf'); E>> $smarty->assign... E>> } JJ> $smarty->>display('form.tpl'); E>> if you have a best solution ? JJ> I can suggest to put in your form.php header : $smarty->caching=false; JJ> and whenever you need the cache,you can activate it :$smarty->caching=true JJ> I hope that will answer to your demand. JJ> Best regards, JJ> Jacques JOCELYN

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