Re: QuickForm with QuickForm Controller and custom renderer
| From: | Alexey Borzov | Date: | Tue, 06 Jun 2006 18:04:04 +0000 |
| Subject: | Re: QuickForm with QuickForm Controller and custom renderer | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24269@lists.php.net to get a copy of this message | ||
Hi,
Jeremy Wilkins wrote:
I'm using a QuickForm with the QuickFormController, and want to use my own renderer. Its a subclass of the default renderer just overriding certain class variables. Its all working apart from its not using my custom renderer.
I've got something like-:
$page =& new HTML_QuickForm_Page(xxx);
$page->accept($my_custom_renderer) ;
$controller->addPage($page);
$page->addAction (foo) ;
Presumably I need something else to make it use the render but what?
You need to RTFM:
http://pear.php.net/manual/en/package.html.html-quickform-controller.faq.php#package.html.html-quickform-controller.faq.renderers
I've had a look through the docs and could see any obvious answer. They reference $renderer->toFooBar() but this doesn't make sense since I don't currently call the default renderer,