$route doesn't work..? - 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: $route doesn't work..? (/showthread.php?tid=33693) |
$route doesn't work..? - El Forum - 09-05-2010 [eluser]Bart v B[/eluser] Hello there. I am playing with mij routes. I want to have a _remap function. So when i have a method the it must be written to domain.tld/foo What i did: 1. created a class called page: Code: <?php 2. the second thing what i did in my routes.php is: Code: $route['default_controller'] = "page"; So, when i go to test.tld/index.php/page i am getting: index called! When i go to test.tld/index.php/page/foo i am getting: method called! So that is working. But when i go to: test.tld/index.php/foo then i get the errror page not found. Am i missing something in my routes? |