![]() |
_remap not working with more than one segment - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: _remap not working with more than one segment (/showthread.php?tid=47058) |
_remap not working with more than one segment - El Forum - 11-24-2011 [eluser]chrisnharvey[/eluser] Hello, I have used some code that I found on the forums that allows rerouting the method to the index function. Here is the code: Code: function _remap($method) I added an echo to check that it is working and it only echoes on the index page. My project is a movie review website and I wanted to remap the movie id to the index function. E.g. http://example.com/movie/281 My directory structure is as follows: controllers === movie ======main.php I also have an extended MY_Router.php file but I have removed this for testing purposes and I don't think this is the issue. Any ideas on how I might be able to solve this problem? Thanks for your time and I apologise for not being able to explain this in such simple terms. Thanks again, - Chris |