Welcome Guest, Not a member yet? Register   Sign In
404 error on controller within several directories
#1

[eluser]arbme666[/eluser]
Hello,

I am using Codeigniter 2.0.1. When I call for example..

http://localhost/index.php/admin/login ./controllers/admin/login.php

It works fine but when I call the url below with a folder within the admin directory it throws the 404 error.

http://localhost/index.php/admin/new_dir/dashboard ./controllers/admin/new_dir/dashboard.php

My controllers are placed and named correctly. Does anyone know why this is happening or can controllers only be one directory deep from the controller directory?

Thanks
#2

[eluser]InsiteFX[/eluser]
You can only go one folder deep, this is in the CodeIgniter User Guide!

InsiteFX
#3

[eluser]arbme666[/eluser]
Does anyone know any links or examples on how to do this. I cant find any working examples on google.

Thanks
#4

[eluser]InsiteFX[/eluser]
As I said above you cannot do it! It's part of the CodeIgniter core.

Maybe in the future this will change, it has been asked for.

InsiteFX
#5

[eluser]arbme666[/eluser]
I just though someone would of created their own MY_Router.php class to do this as they dis with 1.7.2. As it is needed really for complex application structures to keep things easy to navigate.

Thanks again.




Theme © iAndrew 2016 - Forum software by © MyBB