Welcome Guest, Not a member yet? Register   Sign In
_remap or URI Routing ??
#1

[eluser]balboa_1990[/eluser]
I am currently a beginner looking into the PHP Framework and understand the main concepts so far until the Controllers section about _remapping. I have a understanding how remapping overwrites the behaviour of controller methods over the URI eg from www.example.com/about_me to www.example.com/about-me.

What i would like to know is peoples opinions on what to use- _remapping method or the URI Routing method?

Im only asking this as when researching these methods and someone has been troubled on remapping functions, they have been directed to use URI Routing.

So..

1) What is the main common method to use and the pro's over the other one?
2) Is it best to use URI Routing for PHP5 CI version 2 onwards?

I would be grateful to hear your opinions!

(First post so apologies if this is in the wrong section of the forum)
#2

[eluser]Aken[/eluser]
Which option you use will depend on what you're trying to accomplish. They have their own benefits and limitations. Routes are simple in comparison to _remap(), and are typically more common.




Theme © iAndrew 2016 - Forum software by © MyBB