what is $CFG

what is $CFG

by ahmad ali -
Number of replies: 1
any one know where moodle define the class that we take $CFG from it
Average of ratings: -
In reply to ahmad ali

Re: what is $CFG

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It's read from the mdl_config table on startup (and/or if you change any settings).

Is that what you are asking?

EDIT...

config.php (which creates $CFG) calls..
lib/setup.php calls...
moodlelib.php function get_config()