0

My default_controller in the routes configuration is set as "dashboard.php".

I have a sub directory for my controllers, lets call it "admin" and inside that folder i have controller namely "dashboard.php".

When i set in my route.php

 $route['default_controller'] = 'admin/dashboard';

throws an Internal Server Error.

Is it possible to set controller in subfolder as default controller in Codeigniter ?

Pradeep
  • 9,667
  • 13
  • 27
  • 34
Preethi
  • 47
  • 11
  • Refer https://stackoverflow.com/questions/6529026/codeigniter-default-controller-in-a-sub-directory-not-working – Devsi Odedra Apr 13 '18 at 09:29
  • access http://localhost/app_folder/admin will be your default home – Pradeep Apr 13 '18 at 09:33
  • 2
    Possible duplicate of [CodeIgniter default controller in a sub directory not working](https://stackoverflow.com/questions/6529026/codeigniter-default-controller-in-a-sub-directory-not-working) – arthur Apr 13 '18 at 09:34
  • please refer this link : https://stackoverflow.com/questions/34808054/how-to-use-a-sub-folder-in-default-controller-route-in-codeigniter-3/34808170 – Anfath Hifans Apr 15 '18 at 07:21
  • Thanks for the post ! Its working – Preethi Apr 16 '18 at 07:07
  • Thanks for the post . Its working https://stackoverflow.com/questions/34808054/how-to-use-a-sub-folder-in-default-controller-route-in-codeigniter-3/34808170 – Preethi Apr 16 '18 at 07:08

0 Answers0