||Getting Started with PHP's HTML_QuickForm|
If you are working with HTML_QuickForm from inside another function, callbacks do not work in the same way. I mean calling:
$form->addFormRule( "newcontact_validate" );
won't work due to scope issues.
Does anyone know how to setup the callback from inside another class?
At first I thought about doing it like this:
$form->addFormRule( "$this->newcontact_validate" );
but it did not work... I'm lost on this one.
2007-04-28 05:07:04 rzygler [View]