-- Teemu Välimäki <[EMAIL PROTECTED]> wrote
(on Thursday, 10 April 2008, 06:38 PM +0300):
> How do I set class and id attributes for the fieldset legend?

Pass them as options to the decorator:

    $form->addDecorator('fieldset', array('id' => 'foo', 'class' => 'foo'));

If the decorator already exists, you can set the options on it by
pulling it from the form/group/sub form:

    $decorator = $form->getDecorator('fieldset');
    $decorator->setOption('id', 'foo')
              ->setOption('class', 'foo');

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to