Matthew Weier O'Phinney-3 wrote:
>
> -- Samuel Verdier <[EMAIL PROTECTED]> wrote
> (on Tuesday, 05 August 2008, 03:43 PM +0200):
>> In use addError('test');
>>
>> And : $form->isValid($formData); retour true.
>>
>> Is this normal?
>
> Yes. The use case for addError() is to add an error messag
Matthew Weier O'Phinney-3 wrote:
>
> -- Samuel Verdier <[EMAIL PROTECTED]> wrote
> (on Tuesday, 05 August 2008, 03:43 PM +0200):
>> In use addError('test');
>>
>> And : $form->isValid($formData); retour true.
>>
>> Is this normal?
>
> Yes. The use case for addError() is to add an error messa
I hate to bump this but I fear my previous question wasn't noticed. How do I
add option to the that surrounds the labels? I can do it round the
normal elements like this:
array('decorator' => array('td' => 'HtmlTag'), 'options' => array('tag' =>
'td', 'id' => 'element'))
But I haven't been able t
> So, for instance, 'my_decorator' is a bad class name as it (a) doesn't
> follow Zend coding standards, and (b) tells nothing about what it does.
> From what you say, it sounds like it's a submit button decorator -- so
> let's call it 'My_Decorator_Submit'. Place it in
> 'My/Decorator/Submit.php'
> Matthew Weier O'Phinney-3 wrote:
> You should create a custom decorator for that, then -- have it simply
> emit a -- and attach it to that button.
I made a custom decorator and I'd like to use it as following:
$this->submit->setDecorators(array(
array(
Matthew Weier O'Phinney-3 wrote:
>
> Plus, you'll need to ensure the elements and labels are in table data
> and table rows:
>
> $form->setElementDecorators(array(
> 'ViewHelper',
> 'Errors',
> array('decorator' => array('td' => 'HtmlTag'), 'options' =>
> array('tag'