When debugging CakePHP code, it's very useful to know which SQL query is executed latest. Use next few lines to get this information
$lo ... Read more
How to return primary key of last inserted record (ID) generated in the last query, like LAST_INSERT_ID() in MySQL or mysql_insert_id() in P ... Read more
Here is example how to add onChange event in option-select (combo) form element.
$packages = array('1'=>'First', '2'=>'Second', '3'=& ... Read more
Adding new record in database, without raw SQL, but using CakePHP's methods. Often is needed to add new record in database, when you can ... Read more