Richard S. Crawford wrote:
Hi, everyone.
This one's been driving me bonkers for an hour now. Anyone have any idea
why require_once would be dying silently in the script below?
------------------------------------
$CFG->dirroot = "/home/rcrawford/public_html/tanktrunk/tanktrunk";
$CFG->dataroot = $CFG->dirroot.'/moodledata';
require_once("$CFG->dirroot/lib/setup.php");
Hi,
It reads as if $CFG is an object and ->dirroot is not a public property
of that object. So, I don't know what $CFG is, but I think the problem
lays there.
Also, OOP is nice and all (not to start a thread about OOP again), but
putting your config into an object seems a bit overdo to me.
--
Aschwin Wesselius
/'What you would like to be done to you, do that to the other....'/