I'm working my way through Yii and found that the CTreeView is behaving a little strange
Setup: latest SVN Yii, Yiic created web application
I have added a new action to SiteController like this:
public function actionTest() { $tdata = array ( array ( 'text' => 'Node 1', 'expanded' => false, ), array ( 'text' => 'Node 2', 'expanded' => false, 'children' => array ( 'text' => 'Node 2.1', ), ), ); $this->render('test',array('tdata' => $tdata)); }
the view file looks like this:
<h1>Tree Test</h1> <?php $this->widget('CTreeView',array('data' => $tdata)); ?>
Issues:
-
The image for the first node looks like it's a 'between' 2 nodes image.
-
The sub node is not displayed correctly
I hope that I'm doing something wrong, so please let me know what.
Br
Steen