Hi
I am trying to print image in gridview but i had below error , if I print it in view page all things work , so
what’s wrong ?
<?php
$assetsDir = Helper::UPLOAD_DOMAIN_URL . Helper::PRODUCT_UPLOAD_FOLDER . Helper::Countries;
?>
$this->widget('application.components.GridView.BSGridView', array(
'id' => 'countries-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
'co_id',
'country',
'country_e',
'country_f',
'code',
array(
// 'value'=>'Yii::app()->request->baseUrl."/upload/".$data->image'
'name' => 'image',
'type' => 'html',
'value' => '(!empty($data->image))?CHtml::image($assetsDir$data->image),"",array("style"=>"width:25px;height:25px;")):"no image"',
),
array(
'class' => 'XCButtonColumn',
'template' => '{view} {delete} {update} {CitesManagement}',
'buttons' => array(
'CitesManagement' => array(
'label' => Yii::t('app', 'Cites.Management'),
'html' => '<i class="icon-th-list"></i>',
'options' => array('class' => 'btn btn-default',
),
'url' => 'Yii::app()->createUrl("cities/admin", array("country_id"=>$data->co_id))',
),
),
),
),
'template' => '{items}',
'cssFile' => Yii::app()->theme->baseUrl . '/Theme/html/css/bootstrap/bootstrap.css',
'itemsCssClass' => 'table table-striped table-bordered table-hover dataTable',
'pager' => array(
'class' => 'CustomLinkPager',
'cssFile' => Yii::app()->theme->baseUrl . '/Theme/html/css/bootstrap/bootstrap.css',
'htmlOptions' => array('class' => 'pagination')
),
'pagerCssClass' => 'dataTables_paginate paging_bootstrap pagination',
'summaryCssClass' => 'dataTables_info'
)); ?>
Thanks in advance