Add Ckeditor To Yii Framework

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">

&lt;table&gt;


	&lt;tr&gt;


		&lt;td&gt;


			&lt;?php &#036;this-&gt;widget('application.extensions.my.ckeditor.CKEditor', array(


			'model'=&gt;&#036;model,


			'attribute'=&gt;'title',


			'language'=&gt;'en',


			'editorTemplate'=&gt;'full',


			)); ?&gt;


		&lt;/td&gt;


	&lt;/tr&gt;


&lt;/table&gt;

</form>

this is my controller:

class NewsController extends Controller{

public function actionCreate()

{

&#036;model=new News();


&#036;this-&gt;render('create',array(


	'model'=&gt;&#036;model,


));

}

}

would you fixed this problemce and how controller get value which we input in ckedit

thankyou very much

What is the view name? create.php or maybe _form.php? :)

my view name is create.php, I have to fixed the model to models and it has a new error:

[b][size="2"]CException

Alias "application.extensions.my.ckeditor.CKEditor" is invalid. Make sure it points to an existing PHP file and the file is readable. [/size][/b]

I have download the ckeditor_4.2.3_standard and the root in project is project/ckeditor

try add code /protected/config/main.php




Yii::setPathOfAlias('widgets', dirname(__FILE__) . '/../extensions/my');



and make sure your extensions location is


extentions

-my

--ckeditor

---assets

---CKEditor.php