Re: FormBuilder linkNewValue issue
| From: | Ken Restivo | Date: | Fri, 20 May 2005 21:44:31 +0000 |
| Subject: | Re: FormBuilder linkNewValue issue | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19333@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, May 20, 2005 at 10:13:36AM -0700, Justin Patrin wrote:
> On 5/20/05, Ken Restivo <ken@restivo.org> wrote:
> > On Fri, May 20, 2005 at 07:52:10AM +0200, Alessandro Pasotti wrote:
> > > * Imagine you are adding a new record in the same scenario described above,
> > > * When you call validation method _before_ the subform is processed it fails
> > > because the required FK for the linked table is null.
> > > * To make it work, I had to modify fb->processForm to posticipate validation
> > > of the main form _after_ the subform is processed.
> > >
> >
> > I ended up having to implement my own FB-like functionality (mostly API-compatible with
> > FB, in case I want to switch later), and this is exactly how I had to do it.
>
> Now why would you go and do that....what's wrong with FB as it is?
>
Sorry, man, didn't mean to hurt your feelings. FB is great; that's why I'm keeping at
least some API compatibility with it.
But I had so much customisation I needed to do; it didn't make sense to throw a ton of
callbacks and tweaks to hack around FB. Plus I also didn't need a lot of features it has, and
they confused the hell out of me, my code path is a bit easier to debug because I don't have to
chase those rabbits.
Uh, plus, when I started FB wasn't quite stable enough for my taste, and I couldn't risk
random things breaking and me not knowing how to fix it.
My FB-like class is a bit over 700 lines total. It's not a competitor ;-) I'd publish it
but I don't think anyone else will like the way I did stuff; it's specific to this
application.
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCjlo/e8HF+6xeOIcRAh3xAJ9Of9UXmUkWzh2UAOHIytiJbCrWPwCgnvHR
soyA3CPmKmoJqnRLhnm/UZk=
=LQC8
-----END PGP SIGNATURE-----