Codeigniter 404 状态标头没有任何原因
大家好 我有一个控制器,它调用一个模型,该模型在数据库查询后返回一个数组到我的视图,该视图打印一些我可以在浏览器中看到的 json。问题是该页面无缘无故地有一个 404 状态标头。
有什么建议吗?
Hello all
I have a controller which calls a model which returns after a db query 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不应该存在的页面通常会在 CodeIgniter 中发送 404 标头。
您可以执行以下操作之一
如果没有任何效果,最好是您发布了一些可能有帮助的代码、路由等。
A page that shouldn't exist is often sends a 404 header in CodeIgniter.
You could do one of the following
If nothing works, it would be better if you posted some of your code, routing, etc that may help.