Welcome Guest, Not a member yet? Register   Sign In
Using Sub-Directories for Default_controller
#3

As far as i know,

You should use your controller name at first , then you can also use the name of a function inside it



PHP Code:
$route['default_controller'] = 'coltroller/function'


so in your case you should have a controller admin.php in your `controllers` folder, which has the function `dashboard` inside it

----

You can also do this:


PHP Code:
$route['default_controller'] = 'welcome'

Then inside your welcome controller do a simple redirect


PHP Code:
redirect("admin/dashboard"); 
Reply


Messages In This Thread
RE: Using Sub-Directories for Default_controller - by noobie - 05-08-2015, 07:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB