Looks like something is botched in your path structure; By default, cake's directory structure should look something like
/cake /app /app/webroot /app/webroot/img /app/webroot/css /vendors Typically I just dump everything into a project folder, and point a vhost domain to /project_name/app/webroot. Using the "standard" setup, you don't have to change any settings and html->image should point to / img/pasty.jpg Another method I've used and seen commonly is sharing a Cake 'install' amongst multiple projects - so you might have something like: /projects/cake/cake-1.2.x.x /projects/project_name/app /projects/project_name/app_webroot Note that there's no /projects/project_name/cake - using this method you need to define a couple constants at the top of your /app/webroot/ index.php file - read up on that here: http://cakebaker.42dh.com/2006/09/26/preparations-for-baking-an-application/ Hope this helps. On May 14, 5:04 am, 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"> > > 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
