NestedSet behavior with CTreeView

Hi all,

any one can help me to retreive the data from model with the nestedset behavior to display it with the CTreeView widget I think is a recursive thing that I must implement but I dont know how.

Thank you

http://semlabs.co.uk/journal/converting-nested-set-model-data-in-to-multi-dimensional-arrays-in-php ?

Thank you i will try to adapt this to yii nestedSet behavior