Welcome Guest, Not a member yet? Register   Sign In
Routing question
#1

Hi.

I have created a sub-directory under application/controllers/  called "Admin". In there I created a controller called "Admin.php"

Similarly in views I created a subdirectory called "admin"

In routes I added this line: 


PHP Code:
$route['admin'] = "admin/admin"

Now I can access my admin folder by going to mysite.com/admin/

Then I created a new controller called "Controllers/Admin/Settings.php" and a view file called "admin/settings.php"

I'd like to access it by going to mysite.com/admin/settings but I get a 404 error. I tried every variation in route I could think of, but I can't figure it out.

Thanks for any help.
Reply


Messages In This Thread
Routing question - by TamasD - 08-19-2018, 04:41 AM
RE: Routing question - by jreklund - 08-19-2018, 05:44 AM
RE: Routing question - by TamasD - 08-19-2018, 06:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB