Welcome Guest, Not a member yet? Register   Sign In
Frendly URL-s
#1

[eluser]Unknown[/eluser]
Hi!

I have one question. I saw that CI uses search friendly url-s. And the thing is that I didn't saw any .htacsses file using Mod_rewrite function. So the question is what trick does CI use to output frendly url-s and can you reveal this secret since CI is released under GPL license.

Thanx
#2

[eluser]xwero[/eluser]
it uses routing to create the urls. the default routing is index.php/controller/method but it's configurable. You should check the router library code to see how the magic works.
#3

[eluser]Sarfaraz Momin[/eluser]
There no secret anywhere. Please read the user guide and you know the amount of transparency CI team keep in this project. CI uses internal rounting using the route library which internally redirects the urls to the corresponding controllers -> methods. Once you go through the user guide routing section you know all the secrets.

Routing

Good Day !!!




Theme © iAndrew 2016 - Forum software by © MyBB