Re: Weird FormBuilder problem

From: Date: Sun, 16 Jan 2005 20:39:28 +0000
Subject: Re: Weird FormBuilder problem
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16955@lists.php.net to get a copy of this message
On Sun, 16 Jan 2005 03:40:53 -0800, Ken Restivo <ken@restivo.org> wrote: > On Sat, Jan 15, 2005 at 11:13:39PM -0800, Justin Patrin wrote: > > On Sat, 15 Jan 2005 19:22:47 -0800, Ken Restivo <ken@restivo.org> wrote: > > > My linked FB select boxes are showing up with only ONE entry in them-- the last one > > > alphabetically-- and no others. > > > > > > Test code to duplicate the problem is: > > > > > > $obj =& DB_DataObject::factory('tablename'); > > > $fb = DB_DataObject_FormBuilder::create(&$obj); > > > $form = $fb->getForm(); > > > if($form->process(array(&$fb, 'processForm'), false)){ > > > $form->freeze(); > > > } > > > echo $form->toHTML(); > > > > > > This is with: > > > DB 1.6.8 stable > > > DB_DataObject 1.7.2 stable > > > DB_DataObject_FormBuilder 0.11.1 beta > > > HTML_QuickForm 3.2.4pl1 stable > > > > > > My links all appear to be in order, I'm using them with DBDO all through the > > > rest of my application with no problems. > > > > > > > What version of PHP? Did you try turning off overloading? > > define('DB_DATAOBJECT_NO_OVERLOAD', 1); > > before including anything. > > > > PHP 4.3.8 on this machine. And I have overloading off, always. > > BTW, over the last few hours, I was able to implement most of the FB-like functionality I > needed, in a couple hundred lines of code using only QF and DBDO. What amazing packages those are! > Yes....although you're making us look bad now. ;-) FormBuilder does *lots* of stuff now, though. > At this point I feel confident that I can write around FB for much of my application, but > I'd still like to know what's up with this. I have many levels of links, so I suspect > it's something to do with the linklevel (follow_links=2 in my ini). > Well, personally I'd rahe ryou not write around it. ;-) The link level shouldn't affect whether is diaplys the options. BTW, it's linkDisplayLevel now, not follow_links. That changed a while ago. Also, make sure that fb_linkDisplayFields is filled out in each of the linked-to DOs. Lastly, try turning on DO debug messages and see if FB says anything useful. DB_DataObject::debugLevel(5); -- Justin Patrin

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