I read that the AppError class is now for backwards compatibility and that Exceptions should be used instead. How does one go about creating custom error pages for things like 404 errors, or completely custom errors?
I read that the AppError class is now for backwards compatibility and that Exceptions
Share
Try this:
/app/Config/core.php
Exception render need to set as an
AppExceptionRender. Example:/app/Controller/ErrorsController.php
/app/Lib/Error/AppExceptionRenderer.php
/app/View/Errors/error404.ctp
Insert it where you need:
throw new NotFoundException();