Re: PEAR::DB_DataObject Overload-ERRMSG

From: Date: Wed, 23 Jun 2004 04:53:14 +0000
Subject: Re: PEAR::DB_DataObject Overload-ERRMSG
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13261@lists.php.net to get a copy of this message
Verona Busch wrote:
Hi, i'm new to PEAR. You might can help me with this. :-) My configuration: W2K-Server Apache/2.0.49 (Win32) PHP/4.3.6 (CGI/not modulversion) mySQL 3.23.49 PEAR::Packages DB 1.6.1 DB_DataObject 1.6.1 DB_DataObject_FormBuilder 0.9.0 DB_NestedSet 1.3.4 DB_QueryTool 0.10.1 DB_Table 0.18 I did some tables with phpmyadmin and tried to create the classes with DB::DataObject::createTable.php. Wonderful! Good Work! But there seem to be some problems. Mayby cause of "Wi..." Sorry, of "Not-Linux". The filename of the classes are all build with uppercase. The require_once()-paths in all autogenerated table-classes is wrong. It allways tells ('DB/DataObject.php). In my case that's wrong so i changed it to require_once('PEAR/DB/DataObject.php'). Whenever I require more than one new table, i get following error message: Cannot redeclare class db_dataobject_overload in ...Pear\DB\DataObject.php on line 183
Sounds like your require_once isn't working. Are you sure all of your requires are using the same path? If you want PEAR stuff to work out of the box, I highly recommend that you add the PEAR root to your include_path in your php.ini. You're on "Not-Linux", so I'm pretty sure you have access to that.
The other thing is, that I don't know how to get a listed table just like phpmyadmin does. Isn't there a tutorial how this PEAR::Packages could be combined to get a nice output, input and changing Frontend in HTML or XHTML?
::grin:: You said the magic word, Frontend! I built a frontend package for FormBuilder that's very PEAR friendly. You can get it here: http://www.reversefold.com/PEAR/DB_DataObject_FormBuilder_Frontend/src/ Feel free to browse the source or download the tgz for easy using. If you have any questions / comments, just ask. :-) -- paperCrane <Justin Patrin>

« previous php.pear.general (#13261) next »