Welcome Guest, Not a member yet? Register   Sign In
getting the default route?
#1

[eluser]tdktank59[/eluser]
Is there a way to get $route['default_controller'] into a model...

So I don't have to set my own for this script im working on.
#2

[eluser]pistolPete[/eluser]
You can access it using:
Code:
$this->router->routes['default_controller']

But where do you need it for? You shouldn't mess around with routing in your model...
#3

[eluser]tdktank59[/eluser]
it's for my authentication module. Which upon loging in would redirect you to the proper controller.




Theme © iAndrew 2016 - Forum software by © MyBB