• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FIXED] Routes Help

#1
[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?

#2
[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!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.