开发者

Codeigniter 404 status header with no reason

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜