Everything works fine on my localhost WAMPP, but once i upload everything to my host the created thumbnails wont show a picture, just the missing picture box. My site has an upload pictures feature for guest, the pictures upload and they are in the proper file, just wont show on the page. Here is what i have in my view to display the thumbnails. Its using CListView. I have tried basePath baseUrl and a couple others, nothing works once i upload to host. An important thing to note is that on my server I have several yii based sites using a single yii framework, with the yii framework in the root and each individual site in there own folder. Help stuck.
<?php
//show only the images that have been crop
if(file_exists(Yii::app()->basePath.'/../images/uploads/'.$data->id.'/thumb/'.$data->image)){
?>
<div class="image-box">
<img src="<?php echo Yii::app()->request->baseUrl.'/images/uploads/'.$data->id.'/thumb/'.$data->image ?>" class="img-polaroid"><br/>
<?php echo CHtml::link('<i class="icon-trash"></i>',array('site/delete','id'=>$data->id)); ?>
</div>
<?php
}elseif(!file_exists(Yii::app()->basePath.'/../images/uploads/'.$data->id.'/thumb/'.$data->image)){
//delete the record and file fo the image that has not been cropped
}
?>
When I do an inspect element on where the image should be i get.
Wow! Thanks for your input, but i just figured it out. File Permissions!!! The directory i created to hold the thumbs was set to 700 and should have been 705. Man the little things will get you.