The requested page was not found.
]); |
|
} |
|
$callable = [$this, $request->params['action']]; |
|
|
|
return call_user_func_array($callable, $request->params['pass']); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
[ (int) 0 => object(ShopManager\Controller\ShopController) { orderCode => 'PX000000' components => [ 'Comment.Comment' => null, 'Paginator' => null, 'RequestHandler' => null, 'Auth' => [ [maximum depth reached] ], 'Menu.Breadcrumb' => null, 'Flash' => null ] helpers => [ 'Time' => null, 'Paginator' => [ [maximum depth reached] ], 'Menu.Link' => null, 'Menu.Breadcrumb' => null, 'ShopManager' => null, 'Breadcrumb' => [ [maximum depth reached] ] ] name => 'Shop' request => object(Cake\Network\Request) {} response => object(Cake\Network\Response) {} paginate => [] autoRender => true View => null plugin => 'ShopManager' passedArgs => [ (int) 0 => 'San-pham', (int) 1 => '&do=kind&kid=46&do=type&typeid=3' ] modelClass => 'ShopManager.Shop' viewClass => null viewVars => [ '_commentFormContext' => [ [maximum depth reached] ], '__commentComponentLoaded__' => true ] Comment => object(Comment\Controller\Component\CommentComponent) {} Paginator => object(Cake\Controller\Component\PaginatorComponent) {} RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) {} Auth => object(User\Controller\Component\AuthComponent) {} Breadcrumb => object(Menu\Controller\Component\BreadcrumbComponent) {} Flash => object(Cake\Controller\Component\FlashComponent) {} Cookie => object(Cake\Controller\Component\CookieComponent) {} Vocabularies => object(Taxonomy\Model\Table\VocabulariesTable) {} [protected] _responseClass => 'Cake\Network\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) {} [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => '\Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) {} [protected] _modelFactories => [ 'Table' => [ [maximum depth reached] ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => object(Cake\View\ViewBuilder) {} [protected] _config => [] [protected] _configInitialized => false }, (int) 1 => 'vocabularyTerm' ] [ (int) 0 => 'San-pham', (int) 1 => '&do=kind&kid=46&do=type&typeid=3' ]
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Network\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(ShopManager\Controller\ShopController) { orderCode => 'PX000000' components => [ 'Comment.Comment' => null, 'Paginator' => null, 'RequestHandler' => null, 'Auth' => [ 'className' => 'User.Auth', 'authenticate' => [ [maximum depth reached] ], 'authorize' => [ [maximum depth reached] ], 'loginAction' => [ [maximum depth reached] ], 'logoutRedirect' => '/', 'unauthorizedRedirect' => [ [maximum depth reached] ] ], 'Menu.Breadcrumb' => null, 'Flash' => null ] helpers => [ 'Time' => null, 'Paginator' => [ 'templates' => 'ShopManager.paginator-templates' ], 'Menu.Link' => null, 'Menu.Breadcrumb' => null, 'ShopManager' => null, 'Breadcrumb' => [ 'className' => 'Menu\View\Helper\BreadcrumbHelper' ] ] name => 'Shop' request => object(Cake\Network\Request) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [[maximum depth reached]] cookies => [[maximum depth reached]] url => 'San-pham/&do=kind&kid=46&do=type&typeid=3' base => '' webroot => '/' here => '/San-pham/&do=kind&kid=46&do=type&typeid=3' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] _input => '' [protected] _session => object(Cake\Network\Session) {} } response => object(Cake\Network\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => [[maximum depth reached]], 'cacheDirectives' => [[maximum depth reached]], 'body' => null } paginate => [] autoRender => true View => null plugin => 'ShopManager' passedArgs => [ (int) 0 => 'San-pham', (int) 1 => '&do=kind&kid=46&do=type&typeid=3' ] modelClass => 'ShopManager.Shop' viewClass => null viewVars => [ '_commentFormContext' => [ 'schema' => [ [maximum depth reached] ], 'defaults' => [ [maximum depth reached] ], 'errors' => [ [maximum depth reached] ] ], '__commentComponentLoaded__' => true ] Comment => object(Comment\Controller\Component\CommentComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Auth => object(User\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Breadcrumb => object(Menu\Controller\Component\BreadcrumbComponent) { '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] ] } Cookie => object(Cake\Controller\Component\CookieComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Vocabularies => object(Taxonomy\Model\Table\VocabulariesTable) { 'registryAlias' => 'Taxonomy.Vocabularies', 'table' => 'vocabularies', 'alias' => 'Vocabularies', 'entityClass' => 'Taxonomy\Model\Entity\Vocabulary', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] _responseClass => 'Cake\Network\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(ShopManager\Controller\ShopController) {}, '_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, '_eventList' => null, '_trackEvents' => false, '_generalManager' => '(object) EventManager' } [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 => null [protected] _template => null [protected] _plugin => null [protected] _theme => 'ShopTheme' [protected] _layout => 'default' [protected] _autoLayout => null [protected] _layoutPath => null [protected] _name => null [protected] _className => 'CMS\View\View' [protected] _options => [[maximum depth reached]] [protected] _helpers => [[maximum depth reached]] } [protected] _config => [] [protected] _configInitialized => false }
*/ |
|
public function dispatch(Request $request, Response $response) |
|
{ |
|
$actionDispatcher = new ActionDispatcher(null, $this->eventManager(), $this->_filters); |
|
$response = $actionDispatcher->dispatch($request, $response); |
|
if (isset($request->params['return'])) { |
|
return $response->body(); |
|
} |
|
|
object(Cake\Network\Request) { params => [ 'plugin' => 'ShopManager', 'controller' => 'Shop', 'action' => 'vocabularyTerm', '_ext' => null, 'pass' => [ (int) 0 => 'San-pham', (int) 1 => '&do=kind&kid=46&do=type&typeid=3' ], 'vocabulary_slug' => 'San-pham', 'term_slug' => '&do=kind&kid=46&do=type&typeid=3', '_matchedRoute' => '/:vocabulary_slug/:term_slug', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'San-pham/&do=kind&kid=46&do=type&typeid=3' base => '' webroot => '/' here => '/San-pham/&do=kind&kid=46&do=type&typeid=3' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgaktazEIqv7U5U5kIuWRAAAAAc', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'dienlanhdienmay.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgaktazEIqv7U5U5kIuWRAAAAAc', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'dienlanhdienmay.com', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgaktazEIqv7U5U5kIuWRAAAAAc', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'dienlanhdienmay.com', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://dienlanhdienmay.com/San-pham//&do=kind&kid=46&do=type&typeid=3', 'HTTP_HOST' => 'dienlanhdienmay.com', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34', 'SERVER_NAME' => 'dienlanhdienmay.com', 'SERVER_ADDR' => '150.95.112.215', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '174.129.190.10', 'DOCUMENT_ROOT' => '/var/www/dienlanhdienmay.com/public_html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/dienlanhdienmay.com/public_html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/dienlanhdienmay.com/public_html/webroot/index.php', 'REMOTE_PORT' => '37992', 'REDIRECT_URL' => '/webroot/San-pham/&do=kind&kid=46&do=type&typeid=3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/San-pham/&do=kind&kid=46&do=type&typeid=3', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711413.053, 'REQUEST_TIME' => (int) 1711711413, 'HTTP_X_HTTP_METHOD_OVERRIDE' => null, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => 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) {}, 'home' => object(Closure) {}, 'admin' => object(Closure) {}, 'dashboard' => object(Closure) {}, 'localized' => object(Closure) {}, 'userloggedin' => object(Closure) {}, 'useradmin' => object(Closure) {} ] [protected] _detectorCache => [ 'userloggedin' => false, 'ajax' => false, 'home' => false, 'dashboard' => false, 'get' => true, 'head' => false, 'options' => false, 'admin' => false ] [protected] _input => '' [protected] _session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } } object(Cake\Network\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Language' => 'vi', 'X-Generator' => 'DienLanhDienMayDucThinh 2.1 (http://dienlanhdienmay.com)' ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => null }
|
|
$dispatcher = DispatcherFactory::create(); |
|
$dispatcher->dispatch( |
|
Request::createFromGlobals(), |
|
new Response() |
|
); |
object(Cake\Network\Request) { params => [ 'plugin' => 'ShopManager', 'controller' => 'Shop', 'action' => 'vocabularyTerm', '_ext' => null, 'pass' => [ (int) 0 => 'San-pham', (int) 1 => '&do=kind&kid=46&do=type&typeid=3' ], 'vocabulary_slug' => 'San-pham', 'term_slug' => '&do=kind&kid=46&do=type&typeid=3', '_matchedRoute' => '/:vocabulary_slug/:term_slug', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'San-pham/&do=kind&kid=46&do=type&typeid=3' base => '' webroot => '/' here => '/San-pham/&do=kind&kid=46&do=type&typeid=3' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgaktazEIqv7U5U5kIuWRAAAAAc', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'dienlanhdienmay.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgaktazEIqv7U5U5kIuWRAAAAAc', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'dienlanhdienmay.com', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgaktazEIqv7U5U5kIuWRAAAAAc', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'dienlanhdienmay.com', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://dienlanhdienmay.com/San-pham//&do=kind&kid=46&do=type&typeid=3', 'HTTP_HOST' => 'dienlanhdienmay.com', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34', 'SERVER_NAME' => 'dienlanhdienmay.com', 'SERVER_ADDR' => '150.95.112.215', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '174.129.190.10', 'DOCUMENT_ROOT' => '/var/www/dienlanhdienmay.com/public_html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/dienlanhdienmay.com/public_html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/dienlanhdienmay.com/public_html/webroot/index.php', 'REMOTE_PORT' => '37992', 'REDIRECT_URL' => '/webroot/San-pham/&do=kind&kid=46&do=type&typeid=3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/San-pham/&do=kind&kid=46&do=type&typeid=3', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711413.053, 'REQUEST_TIME' => (int) 1711711413, 'HTTP_X_HTTP_METHOD_OVERRIDE' => null, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => 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) {}, 'home' => object(Closure) {}, 'admin' => object(Closure) {}, 'dashboard' => object(Closure) {}, 'localized' => object(Closure) {}, 'userloggedin' => object(Closure) {}, 'useradmin' => object(Closure) {} ] [protected] _detectorCache => [ 'userloggedin' => false, 'ajax' => false, 'home' => false, 'dashboard' => false, 'get' => true, 'head' => false, 'options' => false, 'admin' => false ] [protected] _input => '' [protected] _session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } } object(Cake\Network\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Language' => 'vi', 'X-Generator' => 'DienLanhDienMayDucThinh 2.1 (http://dienlanhdienmay.com)' ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => null }