CodeIgniter Forums
[FIXED] Routes Help - 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: [FIXED] Routes Help (/showthread.php?tid=1897)



[FIXED] Routes Help - El Forum - 07-03-2007

[eluser]Phil Sturgeon[/eluser]
Ok so it turns out routes are my damn foe. I have used them many times but now and then the damn things just wont work!!

What the hell is wrong with:

Quote:$routes['games/list/:any'] = 'games/index';
$routes['games/list/:any/:any'] = 'games/index';
$routes['games/list/:any'] = 'games';
$routes['games/list/:any/:any'] = 'games';
$routes['games/list'] = 'games';
$routes['games/list'] = 'games/index';
$routes['games/list/'] = 'games';
$routes['games/list/'] = 'games/index/';


None of those bloody rules work!! Surely one of them is right? I just have a url like:

Quote:games/list/ps3/all

and I want it to use

Quote:controller: games; method:index; param1:ps3; param2:all;

Anyone?


[FIXED] Routes Help - El Forum - 07-03-2007

[eluser]Phil Sturgeon[/eluser]
Bah I knew those should have worked, FIXED. I wonder how many more times im going to use the variable $routes instead of $route... gotta stop coding drunk, its bad!