I usually just do $html->url('/img/imagename.jpg');
works fine
On Oct 5, 7:02 am, bitrace <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Does anyone know if this there is a handy shortcut to return a URL
> friendly path to the image directory in webroot?
>
> In this case I'm rendering a JSON view with an object that contains a
> src attribute pointing to a image in the image directory, so the
> $html->image helper isn't any help.
>
> Any ideas?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---