Re: [SMARTY] Smarty reserved variables
| From: | philippe dot morange at ca-indosuez dot com | Date: | Mon, 28 Apr 2003 13:44:38 +0000 |
| Subject: | Re: [SMARTY] Smarty reserved variables | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9405@lists.php.net to get a copy of this message | ||
> I need to know in my templates if caching is enabled of disabled
Right now I do it like this:
index.php:
$caching = false;
$smarty->assign('caching', $caching);
$smarty->caching = $caching;
Philippe MORANGE/EST/DOSI/BANQUE_INDOSUEZ/FR@BANQUE INDOSUEZ le 28/04/2003 14:41:20
Pour : smarty-general@lists.php.net
cc : (ccc : Philippe MORANGE/EST/DOSI/BANQUE_INDOSUEZ/FR)
Objet : [SMARTY] Smarty reserved variables
Hi,
Are all the reserved variables listed in the docs?
I need to know in my templates if caching is enabled of disabled, and wondered if some template
variables existed, or if I needed to assign a special variable from PHP....
In my templates, I have an insert that tells the state of the page:
"Not in cache"
"Cached"
"Refreshed"
and I would like to add "Caching disabled" when this is the case...
Thanks.
==========================================================
Ce message et ses pièces jointes (le "message") est destiné à l'usage exclusif de
son destinataire.
Si vous recevez ce message par erreur, merci d'en aviser immédiatement l'expéditeur et
de le
détruire ensuite. Le présent message pouvant être altéré à notre insu, Crédit Agricole
Indosuez
ne peut pas être engagé par son contenu. Tous droits réservés.
This message and/or any attachments (the "message") is intended for the sole use of its
adressee.
If you are not the adressee, please immediately notify the sender and then destroy the message. As
this message and/or any attachments may have been altered without our knowledge, its content is
not legally binding on Crédit Agricole Indosuez. All rights reserved.
==========================================================
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php