|
Re: [SMARTY] Smarty and Superglobals: msg#00438php.smarty.general
m guckeyson wrote: Is there a best practice for dealing with superglobals ( $_SESSION, $_SERVER, etc) from Smarty templates? I had assumed they would be available to the template without having to explicitly assign them, but that doesn't seem to be the case. So, while pondering why that would be, I began to wonder if I was missing some glaringly obvious reason to not pass them along, implicitly or otherwise. Try referring to them using the following syntax: $smarty.session.var_name or $smarty.get.var_name -- Paul Lockaby paul@xxxxxxxxxxx http://www.dostuff.net -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [SMARTY] Smarty and Superglobals: 00438, m guckeyson |
|---|---|
| Next by Date: | Re: [SMARTY] Smarty and Superglobals: 00438, Aliba Sora |
| Previous by Thread: | [SMARTY] Smarty and Superglobalsi: 00438, m guckeyson |
| Next by Thread: | Re: [SMARTY] Smarty and Superglobals: 00438, Aliba Sora |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |