Welcome Guest, Not a member yet? Register   Sign In
Default Method for Controllers
#2

[eluser]Nick Husher[/eluser]
Because it's probably looking for whatever your function name is/dashboard.

So if you were to look for /blog/archive, your router is translating that to /blog/archive/dashboard. Not really what you want.

What you probably want to do is take a look at the CI_Router class and extend it with a MY_Router. I'm 85% sure that's where the default method for controllers is set to "index"


Messages In This Thread
Default Method for Controllers - by El Forum - 09-03-2009, 08:35 AM
Default Method for Controllers - by El Forum - 09-03-2009, 08:48 AM
Default Method for Controllers - by El Forum - 09-03-2009, 10:58 AM
Default Method for Controllers - by El Forum - 09-03-2009, 12:29 PM
Default Method for Controllers - by El Forum - 09-03-2009, 12:58 PM
Default Method for Controllers - by El Forum - 09-03-2009, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB