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 message to the
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 message to the
element
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 td/td -- 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(