Re: QFC - Register Rule
| From: | Alexey Borzov | Date: | Thu, 20 Nov 2003 07:17:32 +0000 |
| Subject: | Re: QFC - Register Rule | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9049@lists.php.net to get a copy of this message | ||
Hi!
Barry Steele wrote:
Now I want to call it from a page in qfc, I used the following
// <code>
require_once "misc.php";
class IncidentPage extends HTML_QuickForm_Page
{
function buildForm()
{
// blah - build fields
$this->registerRule('checkBoxExpl','function','getCheckBoxExplanationRule');
$this->registerRule('checkRadioExpl','function','getRadioExplanationRule');
}
}
// </code>
This is wrong because it never gets called - should I include all of
these functions in a parent form and sub-class that into QFC?
I don't see any addRule() calls here. How do you expect the methods to be called?