Dear all,
sorry I am very new in Yii,I try to add ckeditor to view, but I have the problem which I can not solve.
the problem is [size="2"]"PHP notice Undefined variable: model"[/size]
this is my view:
<form action="" method="post">
<table>
<tr>
<td>
<?php $this->widget('application.extensions.my.ckeditor.CKEditor', array(
'model'=>$model,
'attribute'=>'title',
'language'=>'en',
'editorTemplate'=>'full',
)); ?>
</td>
</tr>
</table>
</form>
this is my controller:
class NewsController extends Controller{
public function actionCreate()
{
$model=new News();
$this->render('create',array(
'model'=>$model,
));
}
}
would you fixed this problemce and how controller get value which we input in ckedit
thankyou very much