parse error in grid view image variable

I want to show images in grid view, if I use simple value is OK,like $model->image,but my photos are stored in a directory,so I have to add a diretory name before $model->image like


but failed because parse error

Parse error: syntax error, unexpected ‘/’ in /wwwroot/yii/framework/base/CComponent.php(616) : eval()'d code on line 1

code snippet:

$this->widget('zii.widgets.grid.CGridView', array(























please help,any suggestion to solve it,or any other way to show the images

You must use value like this:


Wow thank you for quit reply, that’s exactly the correct answer. And the $data->image not $model->image !