Hello reader!
If you want to set a custom error webpage for your whole cakePHP project you can set this page at
/views/layouts/default.ctp as layout for these error pages like 404/ page not found
To customize it and set your own message, open the app_error.php from location /app/app_error.php and
with the following contents create a call to .ctp fille:
class AppError extends ErrorHandler {
function _outputMessage($template) {
$this->controller->layout = 'error_template';
parent::_outputMessage($template);
}
}
0 Comment(s)