After some digging in the api and trac, I found an enhancement, by
Nate I think, that makes it very simple:

If you pass the name of a file, it assumes it's in 'img'
If you pass path/file it assumes it's in sub-directory 'path' of 'img'
Best of all, if you pass /path/file it assumes it's in sub-directory
'path' of 'webroot'

On 5 Juny, 21:25, "Siebren Bakker" <[EMAIL PROTECTED]> wrote:
> one option you can use is to place the photos in a subdirectory of img, and
> then use $html->img('/photo/imagefile')
>
> On Thu, Jun 5, 2008 at 11:19 AM, leo <[EMAIL PROTECTED]> wrote:
>
> > $html->image($path,$    options = array()       )
>
> > The api says, "$path Path to the image file, relative to the app/
> > webroot/img/ directory."
> > is this configurable? I don't want photos in the same place as
> > graphics.
>
> --
> In the name of Life, Liberty, and the pursuit of my sanity.
> Siebren Bakker(Aevum Decessus)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to