我试图打印gridview的形象,但我有以下错误,如果我在视图页面万事都打印出来,所以 有什么不对? 查看代码:打印图像中的GridView返回错误
<?php
$assetsDir = Helper::UPLOAD_DOMAIN_URL . Helper::PRODUCT_UPLOAD_FOLDER . Helper::Countries;
// return http://localhost/upload/ssofiles/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"',
),
...............
?>
你找到你的答案吗? 。 – tinybyte
无:(,和我没有任何解释为什么不工作 –