problem with uri segments |
[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.
[eluser]CroNiX[/eluser]
http://ellislab.com/codeigniter/user-gui...llers.html Check out the "Remapping Function Calls" section. |
Welcome Guest, Not a member yet? Register Sign In |