Smarty and Superglobals

From: Date: Thu, 30 Jan 2003 06:21:41 +0000
Subject: Smarty and Superglobals
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7413@lists.php.net to get a copy of this message
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. $smarty->assign( '_SESSION' , $_SESSION ) at the top of every page is growing tedious... but I'm always willing to hear a better implementation..

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