for you to have a popup for thumbnai you should put the image in a anchor tag so modified get image function looks like this
function getImage1($imageVal) {
if ($imageVal != null)
return ;
CHtml::link(CHtml::image($imageVal, '', array('style' => 'width:40px;height:40px;',)),
CController::createUrl(sampleController/popUpImage, array("img"=>$imageVal)),
array("rel"=>"ad"));
}
/* you can use fancy box widget for popup */
$this->widget('application.extensions.fancybox.EFancyBox', array(
'target'=>'a[rel=ad]',
'config'=>array(),
)
one thing you must specify the correct path for the image src try it first with a plain html img tag with satatic values.
for image pop up controller action use ($this->renderPartial(’_image’), array(‘img’=> $imageVal)) renderPartial the view, in that view again image tag with correct img src will render the image.