Re: [PEAR] QuickForm2 catch errors
[email protected] (Adam Tong)
| Newsgroups | php.pear.general |
|---|---|
| Message-ID | <CAHNJ-5kgfZxak3YueYGH1fueaaUOb_L8ykOdzr6h7Ors1B+zYQ@mail.gmail.com> |
Hi, You are right. The documentation is not very detailed. I looked at the source code (Did not find a clear example in the docs). If I understand well, the solution would be to create a file similar to renderer/default.php and define a class like this HTML_QuickForm2_Renderer_MyRenderer extends HTML_QuickForm2_Renderer ... Is this correct? On Thu, Jan 31, 2013 at 2:19 PM, Mark Steudel <[email protected]> wrote: > Take a look at the renderers. Either check out the docs: > http://pear.php.net/manual/en/package.html.html-quickform2.renderers.php > > Or (and I think easier to quickly understand) check out the examples > included in the docs on your pear installation. (e..g on my machine, > it's PEAR INSTALL DIR/ doc/Html_QuickForm2 > > Let us know if that doesn't help or if you have questions. > > MS > > On Wed, Jan 30, 2013 at 3:32 PM, Adam Tong <[email protected]> wrote: >> Hi, >> >> Is there a way to catch the validation errors of QuickForm2. >> >> I want to display validation error messages below the fields, instead >> of on top of them. >> >> How can I do that? >> >> Thank you >> >> -- >> PEAR General Mailing List (http://pear.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > > > -- > ----------------------------------------- > Mark Steudel > P: 425.298.7244 > F: 206.260.3021 > [email protected] > > . : Adoption Updates : . > http://www.steudel.org/blog > > . : Work : . > http://www.mindfulinteractive.com > > . : LinkedIn : . > http://www.linkedin.com/in/steudel