I did the following query in cakePHP : $this->{ModelName}->find('all') , and it returned an array like this :
Array
(
[0] => Array
(
[0] => Array // ModelName
(
[id] => 83
[field1] => value1
[field2] => value2
[field3] => value3
)
)
[1] => Array
(
...
)
)
Instead of the correct display which is supposed to be like that :
Array
(
[{ModelName}] => Array
(
[0] => Array // ModelName
(
[id] => 83
[field1] => value1
[field2] => value2
[field3] => value3
)
)
[{ModelName}] => Array
(
...
)
)
CakePhp version is 2.1
A:Don’t use PDO_MYSQL-1.0.2.tgz,please use –with-pdo-mysql.
Can you check if your server meets the minimums requirements for cakephp ?
http://book.cakephp.org/2.0/en/installation.html#Requirements
You can check your current version within the built-in function in php
phpinfo(). Just write it in any page. Also check your php.ini file to see if the pdo extension for the database your are using is installed correctly