I used this extension nestedsetbehavior:
http://www.yiiframework.com/extension/nestedsetbehavior
I want to creat a root nodes.
The example:
$root=new Root;
$root->title='Mobile Phones';
$root->saveNode();
$root=new Root;
$root->title='Cars';
$root->saveNode();
But I don`t know where is the Root class!!!
can you give me a example about it how to creat a root nodes.
Thank you !
I have EXACTLY the same question!Where is the Root class?
samdark
(Alexander Makarov)
3
Root class should be your model class.