PDA

View Full Version : Where to define new PHP variables?


gmarik
02-02-2004, 07:11 PM
I did not found where to define new variables. I would want to create a new folder in the /images and to define the root level (which has not been done yet) and can't found how to. For example $stylevar[imgdir] which would point to forums/images/ or whatever else variable to use in the templates. :rolleyes:

NTLDR
02-02-2004, 07:59 PM
Just put:

$stylevar['imgdir'] = 'forums/images';

in your phpinclude_start template for each parent style.

gmarik
02-03-2004, 05:58 AM
In a global.php file or wherever in the templates?

Zachery
02-03-2004, 10:14 AM
you can put that in the phpinclude_start template :)