• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
display an external link

#1
[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='&lt;?php echo $myObject-&gt;myurl;?&gt;'>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

#2
[eluser]mejlo[/eluser]
load url helper and then
Code:
<a href='&lt;?php echo site_url($myObject-&gt;myurl);?&gt;'>mylink</a>

#3
[eluser]Unknown[/eluser]
Hey,

Replying on behalf of William.

Quote:Thanks for your reply but, I've tried this with the same result.

Cheers,

#4
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.