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?
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Ivan Rimac
mail: ivnrmc@gmail.com
tel: +385 95 555 99 66
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment