EllisLab text mark
Advanced Search
     
[FIXED] Routes Help
Posted: 03 July 2007 06:26 PM   [ Ignore ]
Avatar
Joined: 2007-06-11
2985 posts

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:

$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:

games/list/ps3/all

and I want it to use

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

Anyone?

 Signature 

————————
Blog | Twitter | GitHub | BitBucket
————————-
PyroCMS - open source modular CMS built with CodeIgniter
PancakeApp - Simple, hosted invoicing/w project management

 
Posted: 03 July 2007 08:35 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-11
2985 posts

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!

 Signature 

————————
Blog | Twitter | GitHub | BitBucket
————————-
PyroCMS - open source modular CMS built with CodeIgniter
PancakeApp - Simple, hosted invoicing/w project management