10 Yii::import(
'zii.widgets.grid.CGridColumn');
72 if ($this->imagePathExpression && $imagePath = $this->evaluateExpression(
73 $this->imagePathExpression,
74 array(
'row' => $row,
'data' =>
$data)
77 $this->imageOptions[
'src'] = $imagePath;
78 $content = CHtml::tag(
'img', $this->imageOptions);
79 } elseif ($this->usePlaceHoldIt && !empty($this->placeHoldItSize)) {
80 $content = CHtml::tag(
82 array(
'src' =>
'http://placehold.it/' . $this->placeHoldItSize)
84 } elseif ($this->usePlaceKitten && !empty($this->placeKittenSize)) {
85 $content = CHtml::tag(
'img', array(
'src' =>
'http://placekitten.com/' . $this->placeKittenSize));