QuickForm with QuickForm Controller and custom renderer
| From: | Jeremy Wilkins | Date: | Tue, 06 Jun 2006 17:27:05 +0000 |
| Subject: | QuickForm with QuickForm Controller and custom renderer | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24268@lists.php.net to get a copy of this message | ||
Hi All,
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? 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,
Thanks
---
Jeremy Wilkins
Ibex Internet Ltd
Parkside Business Park
Parkside Rd.
Kendal
Cumbria
LA9 7EN
Tel: 0845 226 8342
Fax: 08718 729374
http://www.ibexinternet.co.uk/