Re: QuickForm with Template_IT?
| From: | Daniel O'Connor | Date: | Mon, 25 Jan 2010 04:04:57 +0000 |
| Subject: | Re: QuickForm with Template_IT? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30234@lists.php.net to get a copy of this message | ||
On Fri, Jan 22, 2010 at 8:30 AM, Charles Ross <chivalry@mac.com> wrote:
> OK, I know that QuickForm has renderers that work with the Template_IT
> template system, and I've seen it work with the examples available by
> downloading the HTML_QuickForm package. But I'm having a great deal of
> difficulty understanding how this works and even more difficulty finding
> clear end-user documentation on the feature. Google has proven unhelpful, so
> does anyone know of a tutorial that I can go through, via the web or even in
> a book, that will take me through the concepts of using HTML_QuickForm with
> HTML_Template_IT?
>
>
http://pear.php.net/manual/en/package.html.html-quickform.intro-renderers.php
and
http://pear.php.net/manual/en/package.html.html-quickform.output.template-renderers.php
is probably as good as it gets.
$form = new HTML_QuickForm();
/// ....
$renderer = new HTML_QuickForm_Renderer_IT(new HTML_Template_IT()); // Or
whatever
$form->accept($renderer);