How-to read $GLOBALS vars from custom_required_functions ?

DAF ID3000

New member
Hi all,
everything is in the title !
I set $GLOBALS['_wherefield'] (for example) in my custom startup function (I checked the var has a value with a file_put_contents) but when I try to read it from one custom required function, the var is empty :-(
I can't use $param parameter because I need values from disabled fields in edit form.

Thanks in advance.

Gilles.
 

DAF ID3000

New member
The problem comes from the initializing sequence: for some reason, when I try to initialize $GLOBALS['_wherefield'] at different points in my custom startup function (for example in an IF-THEN-ELSE structure), the global var is empty when the function ends :unsure: even if the file_put_contents checkpoints I set up showed correct values...

So I used some personal session vars across my PHP code and I set up the $GLOBALS['_wherefield'] var on one single line at the end of the function...
 
Top