As for troubleshooting ideas just look at the source of your resulting page. What is the path to the image that the browser is being given? How does that match to where you have your actual image stored?
On 25 Sep 2012, at 09:16, Ivan Rimac <ivnrmc@gmail.com> wrote:
Yes, put it in the webroot, img folder or anywhere else in the webroot, and before displaying sometimes you need to empty the cache from your browser to display it instantly.2012/9/25 Maliko V <malikovincent@gmail.com>
Hello,the way I did it was to create the img folder in the app/webroot folder.Then regardless of where you insert the image i call the image using the img tag like this < img src="/img/name_of_the_file" /> or you can use the image function by doing this : <?php echo $this->Html->image('name_of_the_file'); ?> . Just make sure that your image is stored in app/webroot/img/Hope this helps
VMSent from iPhone smartphoneI am having a similar problem. I just created the '/img' folder but no matter what I put for the path in the view file (index.ctp), I cannot get the images to display. They just come out blank (and show the 'alt' text instead).
Super frustrating! :>)
Any ideas?
No comments:
Post a Comment