Hey Rajesh,
Yeah, have a look here in the API
http://api.cakephp.org/class_html_helper.html#53a70ae6ec0f5e6bd77c5126a4e6e5e1
You will see that the first parameter is the $path variable. That path
is relative to the /webroot/img directory.
So you could load an image like this $html->image('img1.jpg'), that
will fetch out of the /webroot/img directory,
or you could do this $html->image('/profile/1/pic.jpg') which would
load from the /webroot/img/profile/1 directory.
If you want to load images from a different location, them simply use
an HTML <img> tag.
With security, what do you mean? Like to stop hotlinking?
Shaun
On Oct 27, 12:11 pm, Rajesh <[EMAIL PROTECTED]> wrote:
> Thanks Guys for your help. I got the image upload working. When i use
> $html>image() to display the uploaded image, it picks up from /webroot/
> img. Is there any way i can use $html->image() to load an image from a
> different location. And also where can we move the uploaded images
> from tmp_dir, i mean which location (in terms to security) is better
> to store images.
>
> Thanks
> Rajesh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---