![]() |
Backend setup - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Backend setup (/showthread.php?tid=39835) |
Backend setup - El Forum - 03-22-2011 [eluser]Ajaxian64[/eluser] Hi all, (I use CI 2.0) I try to set up a backend with the objective to well separated code between front-end and back-end Then I set up a new directory siteadmin in controllers directory I also set up in routes.php Code: $route['site-admin'] = 'siteadmin/login'; I have a 404 http error sayingthat /mySite/siteadmin can't be found on this server Does someone know something about this ? Thanks Backend setup - El Forum - 03-22-2011 [eluser]Icehawg[/eluser] Your route is set up for "site-admin" but you are going to "siteadmin". Try going to http://mySite/site-admin instead. BTW - that is just for the route error. I believe you probably have other errors in your setup. Backend setup - El Forum - 03-22-2011 [eluser]Ajaxian64[/eluser] Thanks It was an error on my description I have $route['siteadmin'] = 'siteadmin/login' in the routing Backend setup - El Forum - 03-22-2011 [eluser]Ajaxian64[/eluser] I precise That I 've followed the http://philsturgeon.co.uk/news/2009/07/Create-an-Admin-panel-with-CodeIgniter guideline ... Backend setup - El Forum - 03-22-2011 [eluser]Ajaxian64[/eluser] Ok, I solved the issue. It was mainly due to errors in a controller constructor .... Backend setup - El Forum - 03-22-2011 [eluser]bEz[/eluser] If you have time, would you elaborate on the problem and the resolution to your error? Backend setup - El Forum - 03-22-2011 [eluser]Ajaxian64[/eluser] It was a problem that I introduced myself, no relation with CI or CI architecture. In fact in the constructor I did a redirect in case of a certain condition. And the condition appears ;-) Then it badly interacted with the previous problem. Backend setup - El Forum - 03-22-2011 [eluser]bEz[/eluser] Ook! ![]() Since I'm not very proficient with using routes, just wanted to make sure it wasn't an issue that I could end up having sometime down the road. I'm sure if it was CI related, that using the search feature of the forum may just bring this topic back up and would have been great to know how to resolve it. |