Welcome Guest, Not a member yet? Register   Sign In
problem with uri segments
#1

[eluser]_Smilie_[/eluser]
Perhaps I've misunderstood the documentation, if so, kindly explain it ^^
Any ways, I've got my controller called pages so users go to /site/pages/1 where first segment is pages, second is the ID.

This gives me some nasty problems like the second segment is reserved for other methods, but I don't really want to run other methods in this class, it has the only purpose of reading and showing the visitor some content on a page.

So is there any way I can make the second segment a parameter instead of a method call?
It's kinda silly to have http://homepage.com/pages/read/1 if you can follow me.
#2

[eluser]CroNiX[/eluser]
http://ellislab.com/codeigniter/user-gui...llers.html

Check out the "Remapping Function Calls" section.




Theme © iAndrew 2016 - Forum software by © MyBB