Re: Re: DB_DataObject
| From: | Christopher G.Morlier | Date: | Fri, 18 Oct 2002 16:42:18 +0000 |
| Subject: | Re: Re: DB_DataObject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2522@lists.php.net to get a copy of this message | ||
Thanks for the suggestion Alan. The class did exist and the files were included.
I usually use TextPad as my editor. I just happened to have visible spaces set to on, and noticed it wasn't showing the space marker where a space was on the line. I have noticed a similar problem before when I have cut and pasted stuff from the PEAR documentation, when visible spaces is set to off there is no way to tell that there is a problem. When I change the character (whatever it is) to a space, the script will work. That solved my problem here.
Thanks,
Chris
At 11:35 PM 10/18/2002 +0800, Alan Knowles wrote:
try adding print_r(get_included_files()); and print_r(get_defined_classes());------------------------------------------------------------------------ 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:This method auto-includes the Class file for you - so it is expected to work.$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.Regards AlanAny ideas why this would happen?-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpThanks, Chris