05/20/04 11:18pm
Tank
Anonymous
Can you pass a $_CONF variable to a static page? If so, how? I want to display an image on a static page and don't want to hard code the actual URL to it.
05/21/04 09:20am
Status: offline
exaurdon
Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
The $_CONF variable is avaliable in staticpages, all you need to do is import the global variable into your php code.
Use somethig like:
Text Formatted Code
global $_CONF;
echo '<img src="'.$_CONF['site_url'].'/images/foo.png">';
Exaurdon