Welcome Guest, Not a member yet? Register   Sign In
url question
#2

[eluser]zdknudsen[/eluser]
You can't use the URL helper for that. But one way of doing it would be adding the route

$route[':any/:any'] = "defaultcontrollername/defaultmethodname";

That would route any request to your defaultcontroller. But additionally you would have to add routes for your other controllers.

$route['news(.*)'] = "news$1";
$route['pies(.*)'] = "pies$1";
$route['forum(.*)'] = "forum$1";

And so forth. (By the way I haven't tested this, it's just from the top of my head, so it might not work).

EDIT: It's important that the :any/:any route is at the END of your routes config file, otherwise the defaultcontroller will always be called.


Messages In This Thread
url question - by El Forum - 07-02-2007, 07:18 AM
url question - by El Forum - 07-02-2007, 08:15 AM
url question - by El Forum - 07-02-2007, 08:19 AM
url question - by El Forum - 07-02-2007, 02:47 PM
url question - by El Forum - 07-02-2007, 02:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB