Re: HTML_QuickForm_Controller
| From: | John Vincent | Date: | Wed, 03 Sep 2003 14:58:21 +0000 |
| Subject: | Re: HTML_QuickForm_Controller | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7561@lists.php.net to get a copy of this message | ||
I think you can scratch that. I ended up finding another method.
in _renderForm I did this:
global $g_Page;
$g_Page->addBodyContent($page->toHtml());
and it works just fine. I keep forgetting that everything in pear subclasses from everything else ;)
John Vincent wrote:
Alexy,I was testing out your package for multipage forms with QuickForm and had a question. I might be missing something obvious here and I do realize this is beta.I've subclassed HTML_QuickForm_Action_Display and followed the notes to override the _renderForm method. I thought that I would be able to use any quickform render method there but I think I might be mistaken. My goal is to simply call $page->toHtml() so that I can then add that to my site where I'm already using HTML_Page. I need to be able to call $mypagehandle->addBodyContent($form).I think I may be going about this the wrong way. Any tips you have, I would be willing to try. Thank in advance for such a great tool with this and the work put in on QuickForm.John E. Vincent