Welcome Guest, Not a member yet? Register   Sign In
Backend setup
#1

[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';
Nevertheless when I have this url => http://mySite/siteadmin then It would seem that I can't reach login controller in my siteadmin directory.
I have a 404 http error sayingthat /mySite/siteadmin can't be found on this server

Does someone know something about this ?

Thanks
#2

[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.
#3

[eluser]Ajaxian64[/eluser]
Thanks
It was an error on my description
I have $route['siteadmin'] = 'siteadmin/login' in the routing
#4

[eluser]Ajaxian64[/eluser]
I precise That I 've followed the
http://philsturgeon.co.uk/news/2009/07/C...odeIgniter guideline ...
#5

[eluser]Ajaxian64[/eluser]
Ok,
I solved the issue. It was mainly due to errors in a controller constructor ....
#6

[eluser]bEz[/eluser]
If you have time, would you elaborate on the problem and the resolution to your error?
#7

[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.
#8

[eluser]bEz[/eluser]
Ook! Wink

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.




Theme © iAndrew 2016 - Forum software by © MyBB