• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.