CTreeView AJAX Tree

I have just write something about this. you can find solution here

Hi… i tried but get error like:

use: sqlite3 and Yii Version 1.1.8

I do not understand the meaning of this syntax:




<=> $parentId



The explanation for ‘<=>’ is in the wiki page:

Probably an error when used with sqlite3? I’m tied to MySQL as of the moment, can’t test your scenario yet.

BTW,in my example given, I have provided a link to my base theme to retrieve the icons. If your tree does not need an icon, delete that part…it might just cause trouble if not.

I have finished creating an extension which extends to CTreeView and can create links with ease. It can handle both Nested Set and Adjacency List model, and can be used in AJAX calls too!

Extension page: MTreeView

Downloads: MTreeView.zip

Explanation: My Blog

This is the thread I created so can voice out your observations and comments and suggestions.

Edit: updated the links

@macinville

thank you :)

hi

thanks … it’s work. :D

when data inserted to the database, how can i update CTreevie with Jquery (without refresh page)??

a great work, many thanks~

I have improved the extension so as to make it useful to more “tree-lovers”. Click here to be redirected to the extension’s discussion page.

where,

if i call tree from three table??

If I use oracle database then what should be the query to get treeview for the same example?