For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2005 > Using PHP global var in template









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Using PHP global var in template
Stephen J. Lawrence Jr.

2005-01-20, 9:01 pm

What is the syntax for accessing a PHP global var inside a tpl file? I
have some global values defined for my php app that I want to have
access to in my templates without having to do
$smarty-> assign('theglobal',$GLOBALS['myglobal'])
;

I searched all over but could not seem to find the answer.

steve
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com