Re: Re: DB_DataObject_FormBuilder: how to use preProcessForm?
| From: | Justin Patrin | Date: | Tue, 14 Nov 2006 23:17:38 +0000 |
| Subject: | Re: Re: DB_DataObject_FormBuilder: how to use preProcessForm? | ||
| References: | 1 2 3 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-25830@lists.php.net to get a copy of this message | ||
On 11/14/06, Julien Sobrier <julien@sobrier.net> wrote:
Justin Patrin wrote: On 11/13/06, Julien Sobrier <julien@sobrier.net> wrote:The docs page for the callbacks does state that these functions should be in the DO classes. I'll add some examples as well. -- Justin PatrinCreate a preProcessForm function in the DO. Than you, i thought I had to do this in the Form itself, or in the FormBuilder.Hello, I can't find out to use preProcessForm(&$values, &$formBuilder). I have created my form: $var =& DB_DataObject::factory('var'); $formBuilder =& DB_DataObject_FormBuilder::create($var); $form =& $formBuilder->getForm(); [...] How can I use my own preProcessForm funtion?