xoops forums

xoopdio

Just popping in
Posted on: 2012/1/10 6:00
xoopdio
xoopdio (Show more)
Just popping in
Posts: 29
Since: 2011/9/27
#1

global variable

Hi

Id like to insert a new global variable with the following code :

include http://pastebin.com/WQmh4Zmd

the real line is of course a working link to the real file.

and insert : $var = Accessit::getInstance($xoopsDB)->getDivNamesFromDb();

but I always get a blank page in the application.

I tried to put this in the header, index or footer but it seems to block the code and I dont understand why. Maybe someone could help me to find the reason because I run out of ideas ?

Thank you
"A tree is made of non-tree elements" Thich Nhat Hanh

xoopdio

Just popping in
Posted on: 2012/4/30 7:42
xoopdio
xoopdio (Show more)
Just popping in
Posts: 29
Since: 2011/9/27
#2

Re: global variable

http://php.developpez.com/faq/langage ... #concepts_gardervariables

for those who fall on this post. ;)

Thanks to all others contributors..
"A tree is made of non-tree elements" Thich Nhat Hanh