0
votes

I have display error on newly site when i publice on live like this

Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

And its project develop in HMVC code igniter framework and its project well work on my localhost wamp server but not in live hosting server

following my directory structure and basic path configuration enter image description here

please tell me any mistake on live configuration on my web site project code thank you

1
show me your folder project constructor - Ryuk Lee
means default controllers constructor function? - pranay
class Login extends MX_Controller { public function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->load->library('session'); $this->load->model('UserRegister', 'register'); $this->load->helper('url'); $this->load->helper('form'); } } - pranay
HMVC $route['default_controller'] = 'login/login/index/'; I see you have capital letter for controllers folder name should be modules > login > controllers not modules > login > Controllers - Mr. ED
i have change folder name in small later like this modules > login > controllers and controller file name in first later capital later like Login.php also change $route['default_controller'] = 'login/login/index/'; but not working - pranay

1 Answers

0
votes

Rename to Login.php and

$route['default_controller'] = 'Login/index'; //Controller/method
//Default controller do not put in sub directory

and in the controller class Login extends MX_Controller ...

In linux, capital letter and normal letter is very important