Welcome Guest, Not a member yet? Register   Sign In
how to write corect a href links in ci?
#2

[eluser]CroNiX[/eluser]
You didn't show how you are writing the links that don't work.

Yes, base_url('controller/method') is one way.
Another is to use the anchor() function which is part of the url helper
Another is to NOT use relative paths in your links and start them with a /...like
Code:
<a href="/controller/method">The Link</a>


Messages In This Thread
how to write corect a href links in ci? - by El Forum - 08-18-2014, 11:12 AM
how to write corect a href links in ci? - by El Forum - 08-18-2014, 01:49 PM
how to write corect a href links in ci? - by El Forum - 08-18-2014, 09:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB