Friday, 15 August 2014

php - Cakephp - array indexes show numbers instead of the Model name -



php - Cakephp - array indexes show numbers instead of the Model name -

i've got cake applications work ok on home server, , worked ok on production server. since host provider changed php version 5.3.13 5.3.21, things have come askew. main failing array indexes show numbers instead of model name (in case article). example:

array( (int) 0 => array( 'id' => '12', 'title_eng' => 'news snippets spain: 19 february',

instead of

array( 'article' => array( 'id' => '12', 'title_eng' => 'news snippets spain: 19 february',

i have got host provider reinstall pdo_mysql.so hasn't helped.

my guess is, similar issue having.

answer:

according our server guy, "there 2 ways load pdo. first using easyapache install pdo php extension. sec installing pdo via pecl. appears modules in question different."

apparently, server had pecl on instead of normal easyapache pdo. when removed that, , restarted/reset easyapache pdo, worked great.

so - sounds cakephp requires "normal" pdo.

mystery solved.

(i posted here instead of calling duplicate, since it's not duplicate question - think has same answer)

php cakephp

No comments:

Post a Comment