Re: DB_DataObject

From: Date: Wed, 25 Aug 2004 22:35:59 +0000
Subject: Re: DB_DataObject
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14296@lists.php.net to get a copy of this message
On Wed, 25 Aug 2004 20:16:07 +0100, Tomek Klas <tomek@tomekklas.com> wrote: > hey, > > print_($options) returned > > Array > ( > [database] => mysql://commSite:udEID948@localhost/communicate > [schema_location] => /Users/communicatehealth/DB_DataObject > [class_location] => /Users/communicatehealth/DB_DataObject > [require_prefix] => DataObject/ > [class_prefix] => DataObject_ > [debug] => 0 > ) > > I think, it's important to note, that that setup works just fine on > another part of the site. > > My folder structure > > /Users/communicatehealth/DB_DataObject/db_dataobject.ini > /Users/communicatehealth/DB_DataObject/Protocols_users.php (created by > the createTables.php) > /Users/communicatehealth/setup.php (smarty & pear setup file, this one > is parsing the ini file and then being included in every file) > /Users/communicatehealth/Sites/ (html folder) > /Users/communicatehealth/Sites/protocols/register/index.php (offending > file, which include_once the setup.php) > Could you show me the part where /Users/communicatehealth/Sites/protocols/register/index.php includes setup.php? Those notices you were getting meant that the config wasn't set up at that point in the code. Either setup.php isn't being included or something is unsetting the options between setup.php and your DataObject call. > any clues what's wrong? > > Tomek > > > On 25 Aug 2004, at 19:19, Justin Patrin wrote: > > > The ini file isn't being read and put into the global config arrays. > > That's why you're getting the notices. This should work in functions. > > Where exactly are you parsing the ini file? Are you sure the path is > > right? Try a print_r on the config array after the ini file is parsed. > > Also, make absolutely sure that that code is being run. If it is in a > > function, try putting it at the beginning of the script, outside of a > > function call. > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

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