Re: [fw-general] zend form adderror and isvalid

2008-12-03 Thread Borje
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

Re: [fw-general] zend form adderror and isvalid

2008-12-03 Thread Borje
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

Re: [fw-general] How render Zend_Form to html table?

2008-04-24 Thread Borje
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

Re: [fw-general] How render Zend_Form to html table?

2008-04-17 Thread Borje
> 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'

Re: [fw-general] How render Zend_Form to html table?

2008-04-16 Thread Borje
> 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(

Re: [fw-general] How render Zend_Form to html table?

2008-04-16 Thread Borje
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'