logo       

Re: QFC - Register Rule: msg#00349

php.pear.general

Subject: Re: QFC - Register Rule

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?

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise