image in cgridview thumbnail

Hello

In my tabe I have (id, name,…, path).

How can I display in my cgridview a thumbnail or a link to the image based on path, by hovering the image will be displayed in a bigger dimensions?

example : hover

Regards

you can set the format of that column as image




columns=>array(

    ...

    'path:img'

    ...

)



read more about formats

http://www.yiiframework.com/forum/index.php/topic/11042-format-gridview-data/

Thank you,

But if i want to use html tag img, what is the path for an image.jgp inside images folder in yii


	'columns'=>array(

		array(

			'name'=>'image',

			'type'=>'raw',

			'value'=>'CHtml::image(Yii::app()->baseUrl . "/myimage.jpg")',

		),

         )