Re: QuickForm2 catch errors
| From: | Alexey Borzov | Date: | Fri, 01 Feb 2013 18:07:35 +0000 |
| Subject: | Re: QuickForm2 catch errors | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-31711@lists.php.net to get a copy of this message | ||
Hi Adam,
On 01.02.2013 20:37, Adam Tong wrote:
You are right. The documentation is not very detailed.What exactly is "not very detailed"? There is a basic description on what a renderer is, how to use it and how to customize its output: http://pear.php.net/manual/en/package.html.html-quickform2.renderers.php There is also a description of Default renderer with explanation of its templates: http://pear.php.net/manual/en/package.html.html-quickform2.renderers.default.php There are also usage examples installed with the package which show how to use custom templates with Default renderer. Have you read the docs? Have you looked at the examples? Do you have trouble locating the examples?
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?No.
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