General help

Unable to read CFG properties in local plugin? (version 3.4)

 
Picture of prasad pulipati
Unable to read CFG properties in local plugin? (version 3.4)
 

Hi all,

I am trying to update grade points for the user but i got stock at including gradelib.php which is located in lib folder.

After lot of time i found that CFG properties are not able to read.

This is how i am reading CFG proprties

echo $CFG->dirroot

I checked that  $CFG->dirroot is configured in config.php. I don't have any idea how to debug this issue.

Can anyone please suggest?

 
Average of ratings: -