• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting info from the pre_controller hook

Hi there,

I have a pre_controller hook that executes the function 'example' which looks like this:
function example() {
    return 'testvar';

Now my question is rather simple...
How can I access the return value (in this case testvar) in my controller?


23 views already and no-one knows this?

[eluser]Randy Casburn[/eluser]
Hi Final - The config object instantiated at this point and is available (as $CFG) and can be used as a pseudo registry to store variables for use in your controllers.

Try that.


[eluser]Randy Casburn[/eluser]
Just took me a minute %-P

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.