Re: Weird FormBuilder problem
| From: | Ken Restivo | Date: | Sun, 16 Jan 2005 11:40:53 +0000 |
| Subject: | Re: Weird FormBuilder problem | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16952@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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!
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).
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFB6lLFe8HF+6xeOIcRAkOqAKDlF9c4sIxkwwe1dTUHOaVqpJw5+gCgj4L5
LljhbvKf4ZIhYKpiwORA4q8=
=9gwG
-----END PGP SIGNATURE-----