Error: The requested address '/contents/cat/1/page:2' was not found on this server.
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::paginate
*/
public function paginate($object = null, $scope = array(), $whitelist = array()) {
return $this->Components->load('Paginator', $this->paginate)->paginate($object, $scope, $whitelist);
}
'Content' array() array()
'limit' => 6,
'order' => array('Content.position' => 'ASC')
);
$articles = $this->paginate('Content');
'Content'
'1'
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(ContentsController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Contents' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Contents' layoutPath => null viewVars => array([maximum depth reached]) view => 'cat' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Content' modelKey => 'content' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Content => object(Content) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array( (int) 0 => '1' )
$response = $controller->response;
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'contents/cat/1/page:2' base => '' webroot => '/' here => '/contents/cat/1/page:2' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }
));
}
$response = $this->_invoke($controller, $request);
if (isset($request->params['return'])) {
object(ContentsController) { uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Contents' helpers => array([maximum depth reached]) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Contents' layoutPath => null viewVars => array([maximum depth reached]) view => 'cat' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Content' modelKey => 'content' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Content => object(Content) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'contents/cat/1/page:2' base => '' webroot => '/' here => '/contents/cat/1/page:2' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'contents/cat/1/page:2' base => '' webroot => '/' here => '/contents/cat/1/page:2' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }