in this you can call image view on YII grid view
<!--
widget('zii.widgets.grid.CGridView', array( 'id'=>'modelname-grid', 'dataProvider'=>$media->search(), 'filter'=>$media, 'columns'=>array( // 'id', array( 'name'=>'url', 'header'=>'url ', 'value'=>'CHtml::image(Yii::app()->request->baseUrl."/images/media/".$data->url, "", array(\'width\'=>100, \'height\'=>60))', 'type'=>'raw', ), 'name', 'createdate', array( 'class'=>'CButtonColumn', 'template'=>'{delete}', ), ), )); ?>
0 comments:
Post a Comment