View Single Post
Old 10-21-2009, 11:22 PM   #3 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

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.
tony is offline  
Reply With Quote