Hi,

I needed somthing like this, I just created my own tree form element,

At the moment the class extends multicheckbox element so I just need to pass it an array, for example All my categories, I also created an associated view helper for the element. The view helper uses a recursive method to display the tree,

With this method there is only one db call also, to get all categories.



Hth.

On May 18, 2009, at 15:37, 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é!
Tante nuove funzioni su Messenger! Scarica la nuova versione!

Reply via email to