Hi. I have problem with web photo gallery for a store.
Photos are uploaded by CMS. They are stored in webroot/img/upload and
their name is like "photo_file1_{item_id}", "photo_file2_{item_id}",
etc.The problem is when I try to display photos and first I want to check if the item of the store has a photo. <?php if(is_file($this->webroot."img/upload/photo_file1_".$item['Item'] ['id'].".jpg")):?> <img src="<?php echo $this->webroot?>img/upload/photo_file1_<?php echo $item['Item']['id']?>.jpg" /> <?php endif;?> It shows me nothing, but the file exists. In fact, when I remove "IF" it shows me photo. Anyone maybe knows how to deal with this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
