Code Context //$view->set(compact('some', 'vars'));
$html = $html2 = file_get_contents("http://".$_SERVER['SERVER_NAME']."/e404");
//$html=strrev($html);
$error = object(Cake\Network\Exception\NotFoundException) {
[protected] _defaultCode => (int) 404
[protected] _attributes => []
[protected] _messageTemplate => ''
[protected] _responseHeaders => null
[protected] message => 'Такой страницы нет'
[protected] code => (int) 404
[protected] file => '/home/users/s/stinger-21/domains/remont-mihalych.ru/src/Controller/PagesController.php'
[protected] line => (int) 104
}
$http_response_header = [
(int) 0 => 'HTTP/1.1 302 Moved Temporarily',
(int) 1 => 'Server: nginx',
(int) 2 => 'Date: Fri, 26 Apr 2024 14:34:24 GMT',
(int) 3 => 'Content-Type: text/html',
(int) 4 => 'Content-Length: 154',
(int) 5 => 'Connection: close',
(int) 6 => 'Location: https://remont-mihalych.ru/e404',
(int) 7 => 'HTTP/1.1 429 Too Many Requests',
(int) 8 => 'Server: nginx',
(int) 9 => 'Date: Fri, 26 Apr 2024 14:34:24 GMT',
(int) 10 => 'Content-Type: text/html',
(int) 11 => 'Content-Length: 178',
(int) 12 => 'Connection: close'
]
file_get_contents - [internal], line ??
App\Error\AppExceptionRenderer::notFound() - APP/Error/AppExceptionRenderer.php, line 18
call_user_func - [internal], line ??
Cake\Error\ExceptionRenderer::_customMethod() - CORE/src/Error/ExceptionRenderer.php, line 212
Cake\Error\ExceptionRenderer::render() - CORE/src/Error/ExceptionRenderer.php, line 167
Cake\Error\Middleware\ErrorHandlerMiddleware::handleException() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 118
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 102
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 81
[main] - ROOT/webroot/index.php, line 37