Re: PEAR::DB_DataObject Overload-ERRMSG
| From: | Justin Patrin | Date: | Wed, 23 Jun 2004 14:46:35 +0000 |
| Subject: | Re: PEAR::DB_DataObject Overload-ERRMSG | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13269@lists.php.net to get a copy of this message | ||
Verona Busch wrote:
Justin Patrin wrote:*I* wrote this. If you're seeing the code on something other than reversefold.com, I'd like to know as I haven't put it anywhere else (of course, anyone's free to use it, etc...). I have posted about it in other threads and have used a few other URLs, including a PEPR proposal, which is now deleted. Why do you question that I wrote it? -- paperCrane <Justin Patrin>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.Yes and No. I change the include_path through ini_set() cause I can change the php.ini here, but not at my provider. :-( This seems to be not the main problem. I took a look at php.net to find out how this include's and require's work, but still have some questions on that. I have a project folder in my htdocs dir. htdocs + +--project + ++ +-- DataObject //includes all for my PEAR::DB_DataObject+ + ... + + + ++ +-- php //includes my own php-files+ + ... + + + + + +-- pear + + ... ++ index.php //my main testing fileIn index.php I required all PEAR-Packages that I need require_once('pear/DB.php'); require_once('pear/DB/DataObject.php'); require_once('pear/DB/DataObject/FormBuilder.php'); require_once('pear/DB/QueryTool.php'); require_once('pear/HTML/quickform.php'); require_once('pear/HTML/TreeMenu.php'); But in DataObject-Folder there are my generated table-classes which all try to require like below. For example the file contacts.php: require_once('DB/DataObject.php');::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. :-)Thanks, but who actualy coded this? I find it on different threads and you can download it on different sites as well? Is it yours?