开发者

Cakephp: Can AppError determine which page caused an error?

I'm using CakePHP's AppError to email myself any errors that occur. This works great except I can't figure out which pages are causing开发者_如何学编程 errors.

For example, BadPage links to an image that doesn't exist. AppError emails me that the image doesn't exist, but doesn't say anything about BadPage. Is there any way to see that BadPage is where the error originated?


I believe you can access $url = $this->controller->here; from within your error handler.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜