![]() |
controller in subfolder admin - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: controller in subfolder admin (/showthread.php?tid=39728) |
controller in subfolder admin - El Forum - 03-18-2011 [eluser]mardon[/eluser] Hi, I wrote my first application in CI on localhost a I have a problem in controller I have subfolder admin for admin script in which I have admin.php with method login in which I load login form when I use http://localhost/application_folder/index.php/admin/admin/login/ its OK I add to routes Code: $route['admin'] = 'admin/admin'; http://localhost/application_folder/admin/login for the same controoller but this route isn't function. Whats the problem? controller in subfolder admin - El Forum - 03-18-2011 [eluser]InsiteFX[/eluser] Then you need to use an .htacess file to get rid of index.php this is all in the CodeIgniter User Guide. InsiteFX controller in subfolder admin - El Forum - 03-18-2011 [eluser]mardon[/eluser] Oops, my mistake I dont know this, now is it OK Thank you |