Re: Getting all errors in HTML_QuickForm
| From: | Justin Patrin | Date: | Thu, 02 Aug 2007 10:47:44 +0000 |
| Subject: | Re: Getting all errors in HTML_QuickForm | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27785@lists.php.net to get a copy of this message | ||
On 8/2/07, Chris Boget <chris.boget@wild.net> wrote:
> > > * Presumably HTML_QuickForm2 behaves identically (or nearly
> > > identically) to HTML_QuickForm since HTML_QuickForm2 is just a PHP5
> > > rewrite. Am I wrong about this?
> > Not really. It will also contain nice little things like array access
> > for easy element creation and such.
> > It is not just to make it E_STRICT, but also to utilize PHP5's
> features.
>
> Fair enough. Instead of saying 'behaves (nearly) identically', I
> suppose I should have said 'has (nearly) identical APIs'. The fomer is
> much more of a leap than the latter.
HTML_QuickForm2 is a rewrite from scratch, it is not just a port. Its
API will be much more rich and featureful.
>
> > HTML_Quickform2 is in development and alpha.
>
> Then I understand the other posters comment even less. Why deride
> HTML_QuickForm as 'soooo php4' when HTML_QuickForm is in such an early
> phase?
>
He's one of the QF developers and is just saying that since there is
no API to access these errors you have to access a "private" var
(_errors). Since it's PHP4 this is allowed.
I would encourage you to look at QF2 but docs are not likely to be
finished before the package is further along, I'd think. QF is still
perfectly viable, especially since it's stable and QF2 is not.
--
Justin Patrin