If you post your code of your form I can have a deeper look at this. If this
nested list is the only thing in your form you can use something like this
(didn't test it... but maybe it helps you):

Let me know your opinion...

this is the code you want:
<ul>
  <li>Music</li> (level 1)
  <ul>
    <li>Guiterist</li> (level 2)
    <li>Vocalsit</li>
  </ul>
  <li>Film</li> (level 1)
  <ul>
    <li>...</li>
    <li>...</li>
  </ul>
</ul>

public $level1 = array(
  'ViewHelper',
  array('Description', array('tag' => '')),
  array(array('level1' => 'HtmlTag'), array('tag' => 'li'))
);
public $level2 = array(
  'ViewHelper',
  array('Description', array('tag' => '')),
  array(array('level2' => 'HtmlTag'), array('tag' => 'li')),
  array(array('level1' => 'HtmlTag'), array('tag' => 'lu'))
);
public $formDecorators = array(
  'FormElements',
  array('HtmlTag', array('tag' => 'ul')),
  'Form'
);


-----
visit my website at  http://www.phpscriptor.com/ http://www.phpscriptor.com/ 
-- 
View this message in context: 
http://www.nabble.com/Hierarchical-nested-list-with-Zend_Form-tp21272786p21282333.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to