我的错误日志加载了所有缺失的错误,包括robots.txt,.css文件,.png文件等。该网站有效,但收到错误。我该如何摆脱这些错误?我觉得我错过了一些简单的东西,也许是一条路线或什么东西?
2016-05-07 16:11:20 Error: [MissingControllerException] Controller class Robots.txtController could not be found.
#0 /app/webroot/index.php(93): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2016-05-07 16:32:50 Error: [MissingControllerException] Controller class CssController could not be found.
#0 /app/webroot/index.php(93): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
答案 0 :(得分:1)
如果您尝试获取不存在的资源,Cake将尝试按该名称查找控制器。因此,如果您尝试访问/ css / whatever并且没有css文件夹,cake会尝试找到一个CssController来带你到/:controller /:action