QF Controller and FormBuilder together?
| From: | Andrew Wooldridge | Date: | Thu, 19 May 2005 18:39:38 +0000 |
| Subject: | QF Controller and FormBuilder together? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-19286@lists.php.net to get a copy of this message | ||
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.
Thanks!