public function actionsimpletree()
{
Yii::import('application.extensions.SimpleTreeWidget');
SimpleTreeWidget::performAjax();
}
public function actionIndex()
{
$model=Aktenschrank::model()->findByPk(2);
$dataProvider=new CActiveDataProvider('Aktenschrank');
$this->render('index',array(
'dataProvider'=>$dataProvider,
'model'=>$model,
));
}
What i did was just to replace the extension SimpleTreeWidget-v0.6.zip (newest) with this one SimpleTreeWidget-v0.5b.zip.
So i took a look at the change log from version 0.6:
Release 0.6
FEATURE: It is now possible to write protect a model with $Model->readonly = true;. Write protected models are not protected from indirect deletion in case one of its ancestors is deleted.
CHANGE: Models are now loaded via Ajax to accommodate large tables
FIX: It's no longer possible to drag folders outside the root folder(s)
FIX: Copied models now show correct IDs instead of "unidentified"
FIX: It's now possible to copy a copied model without the need to refresh first
…it seems that it has something to do with this line "CHANGE: Models are now loaded via Ajax to accommodate large tables" but thats all i figured out by now.
it would be very nice if somebody could clarify things up