Log in

View Full Version : $header and variables


Lionel
07-12-2005, 01:20 AM
I made a bunch of php and I defined all of them THIS_SCRIPT as reports.
In each one of them I made the variable $folder=xyz;
In header I am trying to display a different image with the conditional
<if condition="THIS_SCRIPT=='reports'"><img src="$folder/images/header.gif"><else />....</if>

The $folder is not recognized by the header, although it is recognized by the scripts. How can I make header recognize it?

amykhar
07-12-2005, 01:39 AM
In global.php, before the header template is evaluated, require the scripts that use the variables in question

Lionel
07-12-2005, 02:40 AM
Ah thanks. You just helped me big time. Since these are 48 scripts and thanks God they are using the same VBA_CMS page, I simply added 'folder' once in vba global variables.