Html Decode In Cgridview Not Working

Hi,

I am saving the description in the database. Description filed is a text area in CKEditor. The issue is I could not properly render content with html tags. I have tried some forum post regarding this but still I could not get it write. I have added necessary code snippets and screen shots.

If any one can help on this I would be much grateful.

admin.php in view folder




<?php $this->widget('zii.widgets.grid.CGridView', array(

	'id'=>'product-grid',

	'dataProvider'=>$model->search(),

	'filter'=>$model,    

	'columns'=>array(       

		'name',

		array(

            'name'=>'description',

            'header'=>'Description',            

            'value'=>$model->description,            

        ),		

		'status',

		

		array(

			'class'=>'CButtonColumn',

            'template' => '{update}',

		),

	),

)); ?>



I referred following posts.

http://www.yiiframework.com/forum/index.php/topic/26657-rendering-html-code-from-database/

http://www.yiiframework.com/forum/index.php/topic/23635-how-to-show-the-html-as-html-loaded-from-the-database/page__p__114981__hl__htmlentitie+#entry114981

use this




....

array (

'name' =>'description' ,

'header' => 'Description' ,

'value' =>$model -> description,

'type'=>'html'

),

....



It worked. Thanks Ahamed!

dont forget to refer manuals provided by Yii :) all the best.