General developer forum

local plugin - simple question- global variable location ?

 
 
Tim at Lone Pine Koala Sanctuary
Re: local plugin - simple question- global variable location ?
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Something else will already have required your lib.php in install.php.

(If you are really curious to find out where, add this debugging line to lib.php

format_backtrace(debug_backtrace());

That should show you where it is required from.)

 
Average of ratings: -
Picture of shanthi peter
Re: local plugin - simple question- global variable location ?
 

Thanks Tim

I got confused. The install.php was not including variables from lib.php at all in the first place

So now I had to use require_once in both install and uninstall. and all works well.

shanthi

 

 
Average of ratings: -