10-21-2009, 11:22 PM
|
#3 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
In a hurry notice, I would say that it is because the error method has to have an argument to work. But the 'on a non-object' part tells me that the $Base->Database property is not an object instantiation.
Maybe changing this:
PHP Code:
$this->$class_name = new $class_name();
into this:
PHP Code:
$this->{$class_name} = new $class_name();
would help.
I don't remember very well the syntax rules in using variables as processing code text.
|
|
|
|