Smarty global variables
| From: | Blue Presley | Date: | Thu, 30 May 2002 01:34:24 +0000 |
| Subject: | Smarty global variables | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4441@lists.php.net to get a copy of this message | ||
I'm using code identical to the following to assign variable values to Smarty variables:
$smarty->assign("x","y");
My question is, Are all assigned template variables automatically added to the $global_assign
variable? I am wanting to access template variables accross multiple templates w/o having to
directly assign them in each of my .php files.
If the variables are not automatically assigned to a global array, then how do i add it to it?
Even more importantly, what is the correct format for accessing the global template variables? Using
the above as an example, I've tried:
{$global_assign.x}
but nothing is happening.. what am I doing wrong?
Thanks in advance,
Blue