Hi, I am new to Yii and I am trying to implement the following:
I am having a dropdown list that holds a hierarchical tree (using id/parentid and type=0 [navigation links]), what I want is to do a recursion on the dropdownlist elements so that it will display them in that order:
ROOT
1. ITEM 1
1.1 ITEM 1.1
1.2 ITEM 1.2
1.2.1 ITEM 1.2.1
1.3 ITEM 1.3
2. ITEM 2
2.1 ITEM 2
etc,
In classic php I am using a recursion to achieve that (most of my work is in plain hierarchy like this).
Also using the same hierarchical data, is it possible to make a custom form element, for example a div block that has overflow:auto to look like a multiple dropdownlist (only visually) but instead of actually choosing on select, to rended a checkbox or a radio next to it.
All of the above are implemented in plain php, I am only trying to find ways to do them in yii (using widgets? components? zii extensions? )