Concatenate the address with the suffix:
$link = "http://".$Obj->getUrl();
echo link_to('link name', $link);

Something like that

On Nov 11, 12:39 pm, deepak <[email protected]> wrote:
> Hi
>
> There is a column in my table which stores external urls e.g.
> "www.amazon.com".
>
> Now when I try to use link_to('Product', $Obj->getUrl()). It outputs
> <a href="http://www.myappbaseurl.com/www.amazon.com";>Product</a>
>
> Infact symfony takes all the url as internal uri.
>
> Is there a way in symfony thru which I can assign external url to
> links such as <a href="www.amazon.com">Product</a> ?
>
> Now if there is a http:// added in the url it considers it as external
> url and redirects properly.
>
> Let me know if I make any sense here.
>
> Thanks
> Deepak

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en

Reply via email to