creating a cms need help |
[eluser]UdayD[/eluser]
hi! i am developing a cms through CI.I want to separate my administrator from the front end. i wrote a controller administrator and wrote another config variable as Code: $config['admin_url'] = "http://example.com/Administrator"; and i acccess the controller for it using the url Code: http://example.com/Administrator/login the controller for it as below Code: class Administrator extends Controller { Code: A PHP Error was encountered Please tell me how can i do this, i.e seperate my admin and the frontpanel. Thanks in Advance
[eluser]pickupman[/eluser]
You should be using the url http://example.com/administrator/login (lowercase url's). You may also want to look into what routes can do.
[eluser]UdayD[/eluser]
even if i use url in lower case still i get the same error. I think there something wrong with the code of config vars.
[eluser]Ngua Go[/eluser]
What's $this->config->item('cpstyle') ? not exist $config['cpstyle']
[eluser]pickupman[/eluser]
Should be this: Code: class Administrator extends Controller {
[eluser]Unknown[/eluser]
i have used this code and it is working properly now |
Welcome Guest, Not a member yet? Register Sign In |