display an external link |
[eluser]Unknown[/eluser]
I think that my question is a beginner but I'm stuck on it, on view, I would just write on links : Code: <a href='<?php echo $myObject->myurl;?>'>mylink</a> the value of $myObject->myurl is simply "http://www.myurl.com" and every time, the codeigniter link show me on browser : http://www.mydomaine.com/http://www.myurl.com can someone help me, Thanks
[eluser]mejlo[/eluser]
load url helper and then Code: <a href='<?php echo site_url($myObject->myurl);?>'>mylink</a>
[eluser]Unknown[/eluser]
Hey, Replying on behalf of William. Quote:Thanks for your reply but, I've tried this with the same result. Cheers,
[eluser]Unknown[/eluser]
Hello, Thanks Shane Eckert, i think that the problem of my account on codeigniter is right now,and finally it work fine. thanks for your reply but, I've tried this with the same result. And finally, I used jquery to make a small combination. I got the address http://www.mydomaine.com/http://www.myurl.com and separated with "http://" then put the exact address. Thanks |
Welcome Guest, Not a member yet? Register Sign In |