If you want to add the same class for each checkbox, just do this:
$formElement->setAttrib('class', 'the-class-name');


On Mon, May 18, 2009 at 9:37 AM, Sergio Rinaudo <[email protected]>wrote:

>  Ok, I'll reply to myself,
> I just need to pass all my categories as 'multiOptions' array.
> My question now is, is there any method to pass a class to each element?
> Thanks
>
> Sergio Rinaudo
>
>
>
> ------------------------------
> From: [email protected]
> To: [email protected]
> Date: Mon, 18 May 2009 16:26:09 +0200
> Subject: [fw-general] How to use MultiCheckbox for rendering hyerarchical
> data?
>
>
> Dear List,
> I need to render a multicheckbox that represents my hyerarchical
> 'categories' database table, so display catagories, sub categories and so
> on.
> I've read the documentation '23.6.8. Zend_Form_Element_MultiCheckbox', but
> what I've got is how to render only root categories.
> Is there a method to setup Zend_Form_Element_MultiCheckbox for display
> hyerarchical data?
> Thanks
>
> Sergio Rinaudo
>
>
>
> ------------------------------
> Cerchi i tuoi spazi? Hotmail va oltre i 5GB. Scopri 
> perché!<http://messenger.it/hotmail.aspx>
> ------------------------------
> Tante nuove funzioni su Messenger! Scarica la nuova 
> versione!<http://messenger.it/>
>

Reply via email to