[QA] DB::Dataobject - require

From: Date: Tue, 05 Aug 2003 20:24:01 +0000
Subject: [QA] DB::Dataobject - require
Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-138@lists.php.net to get a copy of this message
Hi! first I'm new to PEAR, newsgroups and a lot of other things, so if this is not the right place place where to ask this, don't hesitate to tell me ... As documentation improved i am finally able to use pear and begin to like it, in the near future it will be like CPAN ... my question is about the 'require'-procedure - although all the necessary info seems to be somewhere in the manual, i simply dont get it completely. This is the beginning of my test with DataObject. dataobject-test.php <CODE> // i need this or similar otherwise PEAR is not found, not very beautiful require_once('HTML/Table.php'); // config procedure from PEAR manual $options = &PEAR::getStaticProperty('DB_DataObject','options'); $config = parse_ini_file('/home/USER/DATAOBJECT/project/conf.ini',TRUE); $options = $config['DB_DataObject']; //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? thx mokko

« previous php.pear.qa (#138) next »