Hi Matthew and Andries, thank you for your fast answer!
Your example does not work with the Zend Framework 1.0.2, because the Radio-ViewHelper works different than the others (I tried exactly your example!). It creates more than one checkbox through the $option parameter. All Radio-elements get the same name, but you cannot give them a unique id. I tried to pass id's as an array, but that does not work too. Ideas? Best regards Sascha -----Ursprüngliche Nachricht----- Von: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. November 2007 16:55 An: [email protected] Betreff: Re: [fw-general] Zend_View_Helper_FormRadio support for id attribute -- Sascha <[EMAIL PROTECTED]> wrote (on Tuesday, 06 November 2007, 04:41 PM +0100): > I noticed that the Zend_View_Helper_FormRadio does not support the id > attribute. > > Is there a way to use the Helper with the id attribute for each generated > checkbox? > > Is it a missing or forgotten feature or perhaps a bug? By default, the name presented is used as an ID. Otherwise, you can specify it in the third argument: $this->formRadio('foo', 'bar', array('id' => 'foo-bar')); -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
