Controller problem : cannot load it's index automatically - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Controller problem : cannot load it's index automatically (/showthread.php?tid=11170) |
Controller problem : cannot load it's index automatically - El Forum - 08-28-2008 [eluser]anggie[/eluser] Hi all... I have search within the forum and didn't find answer, so i decided to ask you guys : Here is my problem: I have a controller named "Admin" and of course I give it an index() and _construct method. Normally, if I call mysite.com/index.php/admin, it'll load index() method,right? BUT IN MY ADMIN CONTROLLER NOT! It ask me to add an index segment (mysite.com/index.php/admin/index) for real result. I don't know where is my wrong, because i have another controller that act normally like. Would you mind helping me? Thanks in advance. sorry for my bad English. Controller problem : cannot load it's index automatically - El Forum - 08-28-2008 [eluser]Pascal Kriete[/eluser] I have a hunch that we can work this out. Could you post the controller (reduced to the constructor and index functions)? Controller problem : cannot load it's index automatically - El Forum - 08-28-2008 [eluser]anggie[/eluser] Sure... Code: <?php Controller problem : cannot load it's index automatically - El Forum - 08-28-2008 [eluser]Pascal Kriete[/eluser] Hmm, I was afraid of this . I can't see anything right off the bat. Does it show a page at all? 404, blank page, error message? Have you extended any core classes, specifically the router? ps. Just saw it's your first post, welcome to the forums. Controller problem : cannot load it's index automatically - El Forum - 08-28-2008 [eluser]anggie[/eluser] Quote:specifically the router?WoWWW!!! Yeah...I just found the answer. The problem was in the routes.php. I just remember that I did a small experiment in auth user...and I forget to delete that setting... Thanks!!! Regards... Controller problem : cannot load it's index automatically - El Forum - 08-28-2008 [eluser]Pascal Kriete[/eluser] Glad I could help . |