Requirements

Dirs structure and installation

Extract the release file under protected/extensions

Usage

After you have installed ENestedSetBehavior and CJstree and you are sure they work properly.

Copy the views/example.php in the views/yourcontroller/

After you have setup properly ENestedSetBehavior and Jstree. In your controller:

public function behaviors() {

    return array(
        'EJNestedTreeActions'=>array(
            'class'=>'ext.EJNestedTreeActions.EBehavior',
            'classname'=>'Rutree',
            'id'=>'id',
            'text'=>'text',
        ),
    );

}
public function actions() {
    return array (

        'render'=>'ext.EJNestedTreeActions.actions.Render',
        'createnode'=>'ext.EJNestedTreeActions.actions.Createnode',
        'renamenode'=>'ext.EJNestedTreeActions.actions.Renamenode',
        'deletenode'=>'ext.EJNestedTreeActions.actions.Deletenode',
        'movenode'=>'ext.EJNestedTreeActions.actions.Movenode',
        'copynode'=>'ext.EJNestedTreeActions.actions.Copynode',
        'createorcopy'=>'ext.EJNestedTreeActions.actions.Createorcopy',
    );
 

}
public function actionIndex() {
    $this->render('example');

}

And play ;)