HI Guys
I'm an newbie to CakePHP and I'm having a problem with links
generated
by my DS constant.

I want to create a link to an image. The image path is stored in my
database
as a string: "img\uploaded\46343d19f2445\image-1.jpg"

In the forms that created the above string, I used the DS constant to
automatically
determine the forward/back slash.

However, when I try to create a link to the particular image:
i.e.
$filepath = img\uploaded\46343d19f2445\image-1.jpg -in controller

echo $html->link('Link','/'.$filepath) -in view

I get given the return link: 
http://localhost/qdu/img\uploaded\46343d19f2445\image-1.jpg

This does not work in browsers etc...

How do I create dynamic urls that actually work in Cake using the DS?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to