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
VM
Sent from iPhone smartphone
On 2012-09-24, at 2:16 PM, ShipSank <[email protected]> wrote:
> I 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.