Re: Global template variables

"B. Kamer" <[email protected]> Mon, 30 May 2005 15:00:40 +0200
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
On May 30, 2005, at 14:25, <subs-9vHHI2gO/[email protected]> <subs-9vHHI2gO/[email protected]>  
wrote:

>
> Hi,
>
> I have a couple of template variables which need to be available by
> default in all templates. I was expecting the "globals" section in
> smarty.conf.xml to be made available to each template as e.g.
> {$binarycloud.globals.foo}. I've had a look in Node.php and
> TemplateManager.php but can't figure out whether this feature used  
> to be
> available or whether it's something broken after phing removal. I'm  
> sure
> the issue was raised on the list a while back but I can't find the  
> thread.
>
> Any ideas?

Have a look at TemplateManager::_configureSmarty()

seem your assumption is correct

          $params['global_assign'] = $this->configuration['smarty'] 
['globals'];

but, we need to set globals explicitly accoriding to;

binarycloud/smarty/NEWS:150:
   - remove $global_assign. assign global variables explicitly  
instead (messju)


can you post a ticket?

bas

>
> Cheers!
> Ben
> _______________________________________________
> dev mailing list
> dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
> http://lists.binarycloud.com/mailman/listinfo/dev
>
>

_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev