On Wed, May 14, 2008 at 2:34 PM, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
>
> Hi all
>
> I'm trying to use html->image to place an image on the page like this:
>
> <?php echo $html->image("pasty.jpg", array(), false); ?>
>
> This results in rendered html like this:
>
> <img src="/cake/img/pasty.jpg">
- Have you placed your app inside 'cake' directory?
All URLs are rendered relative to the app/webroot directory. What happens if
you point your browser to /cake/img (prefixing http://your-domain.com)?
This image doesn't display, because I have no idea where this folder
> is in the directory structure (in fact, the folder doesn't exist).
>
> What is going on?
>
> Thanks
>
> David
> >
>
--
Amit
http://amitrb.wordpress.com/
http://coppermine-gallery.net/
http://cheesecake-photoblog.org/
http://www.sanisoft.com/blog/author/amitbadkas
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---