I have the below code to display image of priest. Now I want to check image exist or not and display no image. How can I do that?
array('name'=>'photo',
'type'=>'html',
'value'=>'CHtml::tag("img", array( "src" => "'.UPLOAD_PATH_PRIEST.'{$data["photo"]}", "width"=>80, "height"=>50))',
'htmlOptions'=>array('width'=>'80'),
),