Hello all I have a controller which calls a model which returns after a db query 开发者_JAVA百科an array to my view which prints some json which i can see in my browser.The problem is that this page has a 404 status header for no reason.
Any suggestions?
A page that shouldn't exist is often sends a 404 header in CodeIgniter.
You could do one of the following
- Check if you the controller/method exists
- Check if you have any routing that may be pointing you to another controller/method
- Check if that location can be browsed via a browser
If nothing works, it would be better if you posted some of your code, routing, etc that may help.
精彩评论