Welcome Guest, Not a member yet? Register   Sign In
Trouble With Routes
#2

[eluser]narkaT[/eluser]
how about:
Code:
$route['ladders(:any)'] = "ladders/display$1";

and
Code:
class Ladders {
    //...

    function display($console = null, $game = null, $team = null) {

        switch(null) {
            case !empty($console):
                //console overview
                break;
            case !empty($console) && !empty($game):
                //game overview
                break;
            case !empty($console) && !empty($game) && !empty($team):
                //team stats
                break;
            default:
                //general overview
                break;
        }

    }
}

just an idea Wink


Messages In This Thread
Trouble With Routes - by El Forum - 11-05-2008, 04:06 PM
Trouble With Routes - by El Forum - 11-05-2008, 04:31 PM
Trouble With Routes - by El Forum - 11-06-2008, 06:49 PM
Trouble With Routes - by El Forum - 11-07-2008, 02:12 AM
Trouble With Routes - by El Forum - 11-07-2008, 03:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB