PDA

View Full Version : hook help: global_complete/start


Bhuwan
02-27-2006, 07:35 PM
When is global_complete & global_start executed?
I am setting an array in threadbit_* and trying to read it back in the above hooks (global_*) and I am having no luck. I've tried to set them as global's but still the same problem.

Any idea's what I could be doing wrong?

Only idea i could think of is that global_complete executes before the threadbit_*.

kmckay
06-01-2006, 04:59 PM
When is global_complete & global_start executed?
I am setting an array in threadbit_* and trying to read it back in the above hooks (global_*) and I am having no luck. I've tried to set them as global's but still the same problem.

Any idea's what I could be doing wrong?

Only idea i could think of is that global_complete executes before the threadbit_*.

global_complete is executed in the print_output function when not running in demo mode. Since this is executed within a function, you may need to globalize any variables that you want to use from outside the function. For example add "global $variablename;" on it's own line before you use the variable. No guarantees that his will work though.

global_start is executed within the global.php script and it's contents are available through the $phpinclude_output variable.