Possible to pass variables to index via second URI rather than third? |
[eluser]randomdriver[/eluser]
[quote author="tonanbarbarian" date="1289302642"]the problem doing what you are trying to do is you are pretty much limiting yourself to a single method in the controller but what you want to do should be possible if you use the _remap method in the controller http://ellislab.com/codeigniter/user-gui...#remapping[/quote] Actually, for anyone trying to do what I am here is the solution: in routes.php just added $route['^controller/page(:num)'] = 'controller/method/$1'; This will allow you to still have multiple methods and not always have controller/method/1 |
Messages In This Thread |
Possible to pass variables to index via second URI rather than third? - by El Forum - 11-08-2010, 11:29 PM
Possible to pass variables to index via second URI rather than third? - by El Forum - 11-08-2010, 11:36 PM
Possible to pass variables to index via second URI rather than third? - by El Forum - 11-08-2010, 11:37 PM
Possible to pass variables to index via second URI rather than third? - by El Forum - 11-08-2010, 11:37 PM
Possible to pass variables to index via second URI rather than third? - by El Forum - 11-09-2010, 03:11 PM
|