Welcome Guest, Not a member yet? Register   Sign In
[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!




Theme © iAndrew 2016 - Forum software by © MyBB