Re: [fw-general] Zend_Form global decorators overriding per element decorators when using array of options to construct

2008-05-07 Thread Jonathan Tullett
> Zend_Form::setOptions() delays the setElementDecorators() call to after > all other configuration, so that any elements set using configuration > will then be affected by it. There is no way to override it. Right, that's what I suspected. > An easier approach is to define an array of default d

[fw-general] Zend_Form global decorators overriding per element decorators when using array of options to construct

2008-05-07 Thread Jonathan Tullett
Hello. I've been playing with Zend_Form today, specifically with the text decorators, however it's not behaving quite how I expect. I've extended the Zend_Form class, and I create the form using an array of options, like so: class forms_MediaOutletForm extends Zend_Form { public functio

Re: [fw-general] Zend_Form, validation occurring on non-required fields

2008-04-09 Thread Jonathan Tullett
Please ignore me, I've just seen the symlink I had pointing to version 1.5.1 of the framework has been repointed back to a pre-release of 1.5 *sigh* Thanks for your help with this, now to track down how the symlink was reverted. Jonathan. -- View this message in context: http://www.nabble.com/

Re: [fw-general] Zend_Form, validation occurring on non-required fields

2008-04-09 Thread Jonathan Tullett
> Hmmm... I tried the above form definition, and then executed the > following: >$values = array('Fax' => ''); > if (!$form->isValid($values)) { >var_export($form->getMessages()); >exit; >} >echo "Validated!"; > And got the expected 'Validated!' response. Are you *

[fw-general] Zend_Form, validation occurring on non-required fields

2008-04-09 Thread Jonathan Tullett
Hi, I'm running v1.5.1 of the framework and am coming into difficulties with form validation in the Zend_Form class. The difficulty is that if I have non-required field, the validators attached to the form element still execute. As an example, take the following form: $form = new Zend_Form