Ich bin folgendes Tutorial durch gegangen http://blog.dievolution.net/cakephp/cakephp-12-blog-tutorial-teil-2
Jedoch verwende ich cakePHP 2.0.5
Wenn ich dann aber meine Seite aufrife kommt es zur folgenden Fehlermeldung:
- Code: Alles auswählen
CakePHP: the rapid development php framework
Database Error
Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'findAll' at line 1
SQL Query: findAll
Notice: If you want to customize this error message, create app\View\Errors\pdo_error.ctp
Stack Trace
#0 C:\xampp\htdocs\cakephp\lib\Cake\Model\Datasource\DboSource.php(436): PDOStatement->execute(Array)
#1 C:\xampp\htdocs\cakephp\lib\Cake\Model\Datasource\DboSource.php(403): DboSource->_execute('findAll', Array)
#2 C:\xampp\htdocs\cakephp\lib\Cake\Model\Datasource\DboSource.php(647): DboSource->execute('findAll', Array, Array)
#3 C:\xampp\htdocs\cakephp\lib\Cake\Model\Datasource\DboSource.php(589): DboSource->fetchAll('findAll', Array, Array)
#4 C:\xampp\htdocs\cakephp\lib\Cake\Model\Model.php(720): DboSource->query('findAll', Array, Object(Post))
#5 C:\xampp\htdocs\cakephp\app\Controller\posts_controller.php(7): Model->__call('findAll', Array)
#6 C:\xampp\htdocs\cakephp\app\Controller\posts_controller.php(7): Post->findAll()
#7 [internal function]: PostsController->index()
#8 C:\xampp\htdocs\cakephp\lib\Cake\Controller\Controller.php(473): ReflectionMethod->invokeArgs(Object(PostsController), Array)
#9 C:\xampp\htdocs\cakephp\lib\Cake\Routing\Dispatcher.php(104): Controller->invokeAction(Object(CakeRequest))
#10 C:\xampp\htdocs\cakephp\lib\Cake\Routing\Dispatcher.php(86): Dispatcher->_invoke(Object(PostsController), Object(CakeRequest), Object(CakeResponse))
#11 C:\xampp\htdocs\cakephp\app\webroot\index.php(96): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#12 {main}
Gibt es da Unterschiede in den versionen? Ich abe den Code kontrolliert und ich aber das Tutorial genau so eingeben wie auf der Seite angeben.