$global_assign
| From: | Gerard Samuel | Date: | Wed, 13 Nov 2002 15:18:16 +0000 |
| Subject: | $global_assign | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6419@lists.php.net to get a copy of this message | ||
Im trying to figure out how to use this variable.
In my php script I have ->
$mpn_tpl->global_assign = array('my_global' => array('what' => 'abc', 'not' => 'xyz'));
In the template, Im trying ->
{$smarty.my_global.what}
Im trying different combinations etc, and I either get a parse error ->
Smarty: [in header.tpl line 1]: syntax error: $smarty.my_global is an unknown reference in */files/www/data/test/includes/class/smarty/Smarty_Compiler.class.php* on line *1398*
Or nothing being outputted by the template.
The manual is somewhat sparse on this matter. Any help would be appreciated.
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/