Backend setup |
[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
[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.
[eluser]Ajaxian64[/eluser]
Thanks It was an error on my description I have $route['siteadmin'] = 'siteadmin/login' in the routing
[eluser]Ajaxian64[/eluser]
I precise That I 've followed the http://philsturgeon.co.uk/news/2009/07/C...odeIgniter guideline ...
[eluser]Ajaxian64[/eluser]
Ok, I solved the issue. It was mainly due to errors in a controller constructor ....
[eluser]bEz[/eluser]
If you have time, would you elaborate on the problem and the resolution to your error?
[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.
[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. |
Welcome Guest, Not a member yet? Register Sign In |