Re: QuickForm2 catch errors

From: Date: Fri, 01 Feb 2013 16:37:26 +0000
Subject: Re: QuickForm2 catch errors
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31709@lists.php.net to get a copy of this message
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 <msteudel@gmail.com> 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 <adam.tongu@gmail.com> 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 > msteudel@gmail.com > > . : Adoption Updates : . > http://www.steudel.org/blog > > . : Work : . > http://www.mindfulinteractive.com > > . : LinkedIn : . > http://www.linkedin.com/in/steudel

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