Error: The view for PagesController::display() was not found.
$defaultLayout = $this->layout; |
|
$this->layout = $layout; |
|
} |
|
|
|
$viewFileName = $view !== false ? $this->_getViewFileName($view) : null; |
|
if ($viewFileName) { |
|
$this->_currentType = static::TYPE_TEMPLATE; |
|
$this->dispatchEvent('View.beforeRender', [$viewFileName]); |
|
$this->Blocks->set('content', $this->_render($viewFileName)); |
'index'
$builder->setTemplate($this->request->getParam('action')); |
|
} |
|
|
|
$this->View = $this->createView(); |
|
$contents = $this->View->render($view, $layout); |
|
$this->response = $this->View->response->withStringBody($contents); |
|
|
|
return $this->response; |
|
} |
'index' null
} |
|
$this->set(compact('page', 'subpage')); |
|
|
|
try { |
|
$this->render(implode('/', $path)); |
|
} catch (MissingTemplateException $e) { |
|
if (Configure::read('debug')) { |
|
throw $e; |
|
} |
'index'
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
return $callable(...array_values($request->getParam('pass'))); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
'index'
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(App\Controller\PagesController) { helpers => [ 'Html' => [ 'className' => 'Bootstrap.BootstrapHtml', 'useFontAwesome' => true ], 'Form' => [ 'className' => 'Bootstrap.BootstrapForm' ], 'Paginator' => [ 'className' => 'Bootstrap.BootstrapPaginator' ], 'Modal' => [ 'className' => 'Bootstrap.BootstrapModal' ], 'Gravatar' => [ 'className' => 'GravatarHelper.Gravatar' ] ] name => 'Pages' request => object(Cake\Http\ServerRequest) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [ [maximum depth reached] ] cookies => [[maximum depth reached]] url => 'pages/index' base => '' webroot => '/' here => '/pages/index' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Network\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } paginate => [] autoRender => false components => [] View => object(App\View\AppView) { Blocks => object(Cake\View\ViewBlock) {} plugin => null name => 'Pages' passedArgs => [ [maximum depth reached] ] helpers => [ [maximum depth reached] ] templatePath => 'Pages' template => 'display' layout => 'default' layoutPath => null autoLayout => true subDir => null theme => null hasRendered => false uuids => [[maximum depth reached]] request => object(Cake\Http\ServerRequest) {} response => object(Cake\Http\Response) {} elementCache => 'default' viewClass => null viewVars => [ [maximum depth reached] ] Recaptcha => object(Recaptcha\View\Helper\RecaptchaHelper) {} Html => object(Bootstrap\View\Helper\BootstrapHtmlHelper) {} Form => object(Bootstrap\View\Helper\BootstrapFormHelper) {} Paginator => object(Bootstrap\View\Helper\BootstrapPaginatorHelper) {} Modal => object(Bootstrap\View\Helper\BootstrapModalHelper) {} Gravatar => object(GravatarHelper\View\Helper\GravatarHelper) {} [protected] _helpers => object(Cake\View\HelperRegistry) {} [protected] _ext => '.ctp' [protected] _passedVars => [ [maximum depth reached] ] [protected] _paths => [ [maximum depth reached] ] [protected] _pathsForPlugin => [[maximum depth reached]] [protected] _parents => [[maximum depth reached]] [protected] _current => null [protected] _currentType => '' [protected] _stack => [[maximum depth reached]] [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => '\Cake\Event\Event' [protected] _viewBuilder => null } plugin => null passedArgs => [ (int) 0 => 'index' ] modelClass => 'Pages' viewClass => null viewVars => [ 'page' => 'index', 'subpage' => null, 'settings' => object(App\Model\Entity\Setting) {} ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Recaptcha => object(Recaptcha\Controller\Component\RecaptchaComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Settings => object(App\Model\Table\SettingsTable) { 'registryAlias' => 'Settings', 'table' => 'settings', 'alias' => 'Settings', 'entityClass' => 'App\Model\Entity\Setting', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] _responseClass => 'Cake\Http\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\PagesController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => '\Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => '\Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [[maximum depth reached]] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => object(Cake\View\ViewBuilder) { [protected] _templatePath => 'Pages' [protected] _template => 'display' [protected] _plugin => null [protected] _theme => null [protected] _layout => null [protected] _autoLayout => null [protected] _layoutPath => null [protected] _name => 'Pages' [protected] _className => null [protected] _options => [ [maximum depth reached] ] [protected] _helpers => [ [maximum depth reached] ] } }
*/ |
|
public function dispatch(ServerRequest $request, Response $response) |
|
{ |
|
$actionDispatcher = new ActionDispatcher(null, $this->getEventManager(), $this->_filters); |
|
$response = $actionDispatcher->dispatch($request, $response); |
|
if (isset($request->params['return'])) { |
|
return $response->body(); |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Pages', 'action' => 'display', '_ext' => null, 'pass' => [ (int) 0 => 'index' ], '_matchedRoute' => '/pages/*', '?' => [ 'id' => '5' ], 'isAjax' => false ] data => [] query => [ 'id' => '5' ] cookies => [] url => 'pages/index' base => '' webroot => '/' here => '/pages/index' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZflmK38AAQEAAEynwOEAAAAK', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZflmK38AAQEAAEynwOEAAAAK', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZflmK38AAQEAAEynwOEAAAAK', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/pages/index?id=5', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '54.166.234.171', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '52432', 'REDIRECT_QUERY_STRING' => 'id=5', 'REDIRECT_URL' => '/webroot/pages/index', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'id=5', 'REQUEST_URI' => '/pages/index?id=5', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710843435.804, 'REQUEST_TIME' => (int) 1710843435, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/pages/index' [private] query => 'id=5' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$dispatcher = DispatcherFactory::create(); |
|
$dispatcher->dispatch( |
|
Request::createFromGlobals(), |
|
new Response() |
|
); |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Pages', 'action' => 'display', '_ext' => null, 'pass' => [ (int) 0 => 'index' ], '_matchedRoute' => '/pages/*', '?' => [ 'id' => '5' ], 'isAjax' => false ] data => [] query => [ 'id' => '5' ] cookies => [] url => 'pages/index' base => '' webroot => '/' here => '/pages/index' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZflmK38AAQEAAEynwOEAAAAK', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZflmK38AAQEAAEynwOEAAAAK', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZflmK38AAQEAAEynwOEAAAAK', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/pages/index?id=5', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '54.166.234.171', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '52432', 'REDIRECT_QUERY_STRING' => 'id=5', 'REDIRECT_URL' => '/webroot/pages/index', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'id=5', 'REQUEST_URI' => '/pages/index?id=5', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1710843435.804, 'REQUEST_TIME' => (int) 1710843435, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/pages/index' [private] query => 'id=5' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
Confirm you have created the file: "Pages/index.ctp" in one of the following paths:
If you want to customize this error message, create src/Template/Error/missing_template.ctp