Welcome Guest, Not a member yet? Register   Sign In
Unable to load your default controller with HMVC and real host
#1

[eluser]greedyman[/eluser]
I get an error when try to upload code to my host http://z191.com/estore/:
Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

I tried to fix this problem follow some way I found in forum but this error is still (delete CI controller folder, model folder; change default file name controller ... ). Here is my folder structure:
<img src="http://img16.imageshack.us/img16/3426/q2vf.png" alt="" />

routes.php
Code:
$route['default_controller'] = "front/home";
$route['404_override'] = '';

What should I do? This is the first time I've uploaded my code to real host, I run it on localhost and it works fine.
#2

[eluser]InsiteFX[/eluser]
Your module default controller should be the same name as the module.

Code:
// Rename home.php (controller to front and it should work using the route below.
$route['default_controller'] = "front";
#3

[eluser]greedyman[/eluser]
[quote author="InsiteFX" date="1377967482"]Your module default controller should be the same name as the module.

Code:
// Rename home.php (controller to front and it should work using the route below.
$route['default_controller'] = "front";
[/quote]

It means that I have to change home.php to front.php? I changed but nothing happen.




Theme © iAndrew 2016 - Forum software by © MyBB