View Single Post
Old 10-22-2009, 10:04 AM   #5 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Database is not a variable nor function inside Base class so you cannot access it via $base->Database.

You would need a __get method and retrieve the object from an array of objects. And you also need to store the objects in that array when you use load_class.
__________________
Tanax is offline  
Reply With Quote