Thursday, September 16, 2010

File upload Form, CakePHP and IE6

Don't ask me why, please tell me why...

A new bug I couldn't explain with Internet Explorer 6 : In my CakePHP controller, after a form submit, a simple redirection doesn't work (unable access to server). I have to use the third parameter of AppController::redirect method as following :

$this->redirect(array('action'=>'myAction'), null, false);

This 3rd parameter with "false" makes php engine not to exit from script after redirection.

Thursday, September 9, 2010

CakePHP, MySQL and tinyint(1)

Have you ever tried to set a greater than 1 integer in a tinyint(1) field with CakePHP ?

Impossible !

CakePHP handles tinyint(1) like boolean ! So, use tinyint(1) fields only for boolean with CakePHP !