Re: [QA] DB::Dataobject - require
| From: | Alan Knowles | Date: | Wed, 17 Sep 2003 07:57:11 +0000 |
| Subject: | Re: [QA] DB::Dataobject - require | ||
| References: | 1 | Groups: | php.pear.qa php.pear.qa |
| Request: | Send a blank email to pear-qa+get-190@lists.php.net to get a copy of this message | ||
M
//why do i have to put this here. the info is already contained in the conf.ini-file require_once '/home/USER/DATAOBJECT/project/Person.php'; </CODE> I think this is ugly code. I expect that dataobject requires the classes on its own is this a feature or is there any other clever way for require that i don't see?Try $person = DB_DataObject::factory('person'); It's not in the manual yet.. - but that is the new prefered way of including.. etc. for dataobjects.. Regards alan
thx mokko-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com