Re[3]: [SMARTY] form and cache

From: Date: Sun, 23 Mar 2003 16:52:36 +0000
Subject: Re[3]: [SMARTY] form and cache
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8851@lists.php.net to get a copy of this message
Hello Elgi, 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> } if(!$smarty->>is_cached('fr/reservation.tpl')) { E> $smarty->config_load('smarty.conf'); E> $smarty->assign... E> } $smarty->>display('form.tpl'); E> if you have a best solution ? I can suggest to put in your form.php header : $smarty->caching=false; and whenever you need the cache,you can activate it :$smarty->caching=true I hope that will answer to your demand. Best regards, Jacques JOCELYN

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