CakePHP : Form Radio Default Checked Value

With the CakePHP FormHelper, you can output a set or a list of radio button widgets.

addthis_url = ‘http%3A%2F%2Fwww.lost-in-code.com%2F30%2Fcakephp-form-radio-default-checked-value%2F’;
addthis_title = ‘CakePHP+%3A+Form+Radio+Default+Checked+Value’;
addthis_pub = ”;

CakePHP Crontab

Due to the way that CakePHP rewrites URL requests with its router, it might seem confusing to execute a Crontab to run a controller action. I will show you how to set up a cron dispatcher so that you can execute all your different controller action schedules on a single file and pass the controller [...]

CakePHP : Delete multiple records

With CakePHP, you can remove multiple records from a database table using the deleteAll() model method.
deleteAll() Usage
$this -> Model -> deleteAll($conditions, $cascade = true);
Lets say that you wanted to remove all the records for a specific user from the Item model. Below is a quick example.
deleteAll() Example
$this -> Item -> deleteAll(array(‘Item.user_id’ => 13));
…where 13 would [...]