echo Chtml::image(Yii::app->baseUrl().'/images/products/'.$model->CODE.'/'.$model->photo->NAME);
echo Chtml::image(Yii::app()->params['url_image_hosting'].'/images/products/'.$model->CODE.'/'.$model->photo->NAME);
echo Chtml::image($model->photo->URL);