Welcome Guest, Not a member yet? Register   Sign In
Weird 'admin' error
#1

[eluser]fauria81[/eluser]
Hi everybody!

Im having a trouble that i find quite weird. Maybe is a very simple mistake, but i cant figure it out.

Im doing a website using Codeigniter 1.7.1, and i need a controller for the backend.

Everything is working fine, until i create a controller named 'admin.php':

Code:
<?php
class Admin extends Controller {
       function Admin(){
            parent::Controller();
       }      
       function index(){
          ...
       }
}
?>

when i piont my browser at http://localhost/codeigniter/admin, i get:

404 Page Not Found. The page you requested was not found.

The thing is that if i change the filename to 'backend.php', and 'class Backend ... function Backend ...' it works as expected (using localhost/backend).

It sounds like a conflict between something and a controller named 'admin'.

Any ideas on this?

Thank you!


Messages In This Thread
Weird 'admin' error - by El Forum - 06-09-2009, 06:08 PM
Weird 'admin' error - by El Forum - 06-10-2009, 04:24 AM
Weird 'admin' error - by El Forum - 06-10-2009, 04:27 AM
Weird 'admin' error - by El Forum - 06-10-2009, 04:33 AM
Weird 'admin' error - by El Forum - 06-10-2009, 06:26 AM
Weird 'admin' error - by El Forum - 06-10-2009, 11:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB