Error: Table ebh_pokemons for model Pokemon was not found in datasource default.
Notice: If you want to customize this error message, create app/View/Errors/missing_table.ctp
public function getDataSource() { if (!$this->_sourceConfigured && $this->useTable !== false) { $this->_sourceConfigured = true; $this->setSource($this->useTable); }
public function getDataSource() {
if (!$this->_sourceConfigured && $this->useTable !== false) {
$this->_sourceConfigured = true;
$this->setSource($this->useTable);
}
'pokemons'
* @return array */ protected function _readDataSource($type, $query) { $results = $this->getDataSource()->read($this, $query); $this->resetAssociations();
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
return null; } return $this->_readDataSource($type, $query); }
return null;
return $this->_readDataSource($type, $query);
'all' array( 'conditions' => array( (int) 0 => 'Pokemon.generation <=3' ), 'fields' => array( (int) 0 => 'id', (int) 1 => 'numero_dex', (int) 2 => 'nom_fr', (int) 3 => 'slug' ), 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )
'conditions' => array( 'Pokemon.generation <='.$generation ) )); $d['generation'] = $generation;
'conditions' => array(
'Pokemon.generation <='.$generation
)
));
$d['generation'] = $generation;
'all' array( 'fields' => array( (int) 0 => 'id', (int) 1 => 'numero_dex', (int) 2 => 'nom_fr', (int) 3 => 'slug' ), 'conditions' => array( (int) 0 => 'Pokemon.generation <=3' ) )
'action' => $request->params['action'] )); } return $method->invokeArgs($this, $request->params['pass']);
'action' => $request->params['action']
return $method->invokeArgs($this, $request->params['pass']);
object(PokemonsController) { helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Pokemons' uses => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Pokemons' layoutPath => null viewVars => array([maximum depth reached]) view => 'index' layout => 'bootstrap' 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 => 'Pokemon' modelKey => 'pokemon' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Auth => object(AuthComponent) {} RequestHandler => object(RequestHandlerComponent) {} Paginator => object(PaginatorComponent) {} Pokemon => object(Pokemon) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array()
$controller->startupProcess(); $render = true; $result = $controller->invokeAction($request); if ($result instanceof CakeResponse) {
$controller->startupProcess();
$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 => 'pokedex' base => '' webroot => '/' here => '/pokedex' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }
)); } $response = $this->_invoke($controller, $request, $response); if (isset($request->params['return'])) {
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(PokemonsController) { helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Pokemons' uses => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Pokemons' layoutPath => null viewVars => array([maximum depth reached]) view => 'index' layout => 'bootstrap' 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 => 'Pokemon' modelKey => 'pokemon' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Auth => object(AuthComponent) {} RequestHandler => object(RequestHandlerComponent) {} Paginator => object(PaginatorComponent) {} Pokemon => object(Pokemon) {} [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 => 'pokedex' base => '' webroot => '/' here => '/pokedex' [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]) }
$Dispatcher->dispatch( new CakeRequest(), new CakeResponse() );
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'pokedex' base => '' webroot => '/' here => '/pokedex' [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]) }