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.
精彩评论