Welcome Guest, Not a member yet? Register   Sign In
Default controller routing problem
#1

[eluser]Dimitar Velkov[/eluser]
Hi I have problem with routing to my default controller.

My this is my route
$route['default_controller'] = "Controlers/controler";

My folder structure for controllers is

Controllers
-Controlers/controller.php
-Controlers/controller2.php
-SomeOtherFolder/othercontroller.php
-SomeOtherFolder/othercontroller2.php

And this is giving me 404 error

This is happening only on my on line server that is on linux,
on my Mac is working fine

any help?
#2

[eluser]rogierb[/eluser]
I don't know if it is a typo but controler vs controller?

Code:
$route[‘default_controller’] = “Controlers/controler”;  != Controlers/controller.php

But your default routes seems off, you don't need to specify the folder controllers, just the once underneath
Code:
$route[‘default_controller’] = “controller_a”; //system//application/controllers/controller_a.php
#3

[eluser]Dimitar Velkov[/eluser]
My path is

//system//application/controllers/somefolder/controller_a.php
#4

[eluser]rogierb[/eluser]
Then your route should be
Code:
$route["default_controller"] = "somefolder/controller_a";

If that gives you a 404, then check if you have some UPPERCASE letter starting your class or filenames.
That may cause problems or some servers.




Theme © iAndrew 2016 - Forum software by © MyBB