Getting Started with PHP's HTML_QuickForm
Subject:   addFormRule callback
Date:   2007-04-28 05:07:04
From:   rzygler
Response to: addFormRule callback

To setup a callback from inside another class, you need to make the form a global var. So, in the calling class, you would start it with:

global $form

and then create the form from there. Then in the callback class method, you again use:

global $form

and you can reference the methods/elements of the form.