The class
,name
and htmlOptions
should not be in the value
array, just like in http://www.yiiframework.com/extension/image-column/
array(
'header'=>'Pimg',
'class'=>'EImageColumn',
'name' => 'm1.pimg', //assuming the relation to model1 in model2 is named m1
'htmlOptions' => array('style' => 'width: 100px;'),
'value'=>'...',// if required
),