Re: DB_DataObject
| From: | Alan Knowles | Date: | Fri, 18 Oct 2002 15:35:14 +0000 |
| Subject: | Re: DB_DataObject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2521@lists.php.net to get a copy of this message | ||
------------------------------------------------------------------------ Subject: DB_DataObject From: "Christopher G.Morlier" <cmorlier@sk-tech.com> Date: Thu, 17 Oct 2002 10:19:58 -0500 To: pear-general@lists.php.net I am using the DB_DataObject package, and have tried the following code:try adding print_r(get_included_files()); and print_r(get_defined_classes());
$dbpage =& DataObjects_Pagedata::staticGet($page); However, I get an error that class dataobjects_pagedata does not exist. I have configured the dataobjects and verified that the file containing the class DataObjects_Pagedata is included.So I changed to:$dbpage =& DB_DataObject::staticGet('DataObjects_Pagedata',$page);And I no longer get any errors. The DB/DataObject.php file is only included through the Pagedata.php file, so it reconfirms that the /DataObjects/Pagedata.php file is included.This method auto-includes the Class file for you - so it is expected to work.
AlanAny ideas why this would happen?Regards
Thanks, Chris