Welcome Guest, Not a member yet? Register   Sign In
Admin CP and Sub-Directory
#2

You dont need any routes for this, CI will work out of the box. CI automaticly detects a folder like 'admin' with one or more controllerfiles (like Login.php) in it and adds a internal route for site.com/admin/login. Atleast At the top of my head I cant recall modifing the routes manual for this.

Please mind that the tutorial is from 2009(!), a few things have chenged since then, one for example wich could explain your issue is that controller files now should start with a capital character, try renameing your file to admin/Dashboard.php and check the upgrade documentation for other changes that might effect you if you try examples from so long ago.
Reply


Messages In This Thread
Admin CP and Sub-Directory - by StratoKyke - 06-07-2015, 01:30 PM
RE: Admin CP and Sub-Directory - by Diederik - 06-07-2015, 04:13 PM
RE: Admin CP and Sub-Directory - by Blair2004 - 06-07-2015, 05:17 PM
RE: Admin CP and Sub-Directory - by Avenirer - 06-08-2015, 01:02 AM
RE: Admin CP and Sub-Directory - by StratoKyke - 06-08-2015, 02:44 AM
RE: Admin CP and Sub-Directory - by Avenirer - 06-08-2015, 03:03 AM
RE: Admin CP and Sub-Directory - by StratoKyke - 06-08-2015, 03:09 AM
RE: Admin CP and Sub-Directory - by Blair2004 - 06-08-2015, 06:39 AM
RE: Admin CP and Sub-Directory - by StratoKyke - 06-08-2015, 06:53 AM
RE: Admin CP and Sub-Directory - by CroNiX - 06-08-2015, 08:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB