Re: QF Controller and FormBuilder together?
| From: | Justin Patrin | Date: | Fri, 20 May 2005 05:20:37 +0000 |
| Subject: | Re: QF Controller and FormBuilder together? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19294@lists.php.net to get a copy of this message | ||
On 5/19/05, Andrew Wooldridge <andrew.r.wooldridge@vanderbilt.edu> wrote:
> Please advise on best coding practice for making a multi-page 'wizard'
> like form using FormBuilder. Is QuickForm Controller the best way?
>
> Here's what I was thinking:
>
> modified example from QF Controller Introduction
>
>
> // Load the controller
> require_once 'HTML/QuickForm/Controller.php';
> // Load the base Action class (we will subclass it later)
> require_once 'HTML/QuickForm/Action.php';
>
> // Class representing a form
> class FirstPage extends HTML_QuickForm_Page
> {
> function buildForm()
> {
> ...some FormBuilder code here...
> }
> }
>
> ...finish QFC Actions and Processing.
>
I recently put up a quick example as I just used QFC with FB.
http://opensource.21st.de/35.html
--
Justin Patrin