Re: timeOptions and dateOptions methods for FormBuilder :)
| From: | Justin Patrin | Date: | Wed, 11 May 2005 00:40:06 +0000 |
| Subject: | Re: timeOptions and dateOptions methods for FormBuilder :) | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19154@lists.php.net to get a copy of this message | ||
On 5/10/05, Dan Rossi <pear@electroteque.org> wrote:
>
> On 11/05/2005, at 3:17 AM, Justin Patrin wrote:
> >>
> >>
> >
> > This isn't possible. However, if you had looked at my Frontend code...
> >
> > You can quite easily stop all rules using this:
> > $form->_rules = array();
> > $form->_formRules = array();
> > $form->_required = array();
> >
> > Granted, this is technically editing private vars, but oh well.
> >
> > You can also stop the required rules by removing the NOT NULL bit from
> > the types.
> >
> >
>
> I just discovered another setting, this turns off all required fields,
> but u can also select some not required in an arrya
>
> array('excludeFromAutoRules'=>'__ALL__')
>
Hmm, I forgot about that one...it was just added by Markus.
> I also tweaked formbuilder with an option fieldsRequired =
> array('date','time');
>
You mean you added an option to do this?
--
Justin Patrin