Posted on April 17th, 2008 by lost-in-code
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 = ”;
Tags: CakePHP, form, formhelper, php, radio, radio buttons
Filed under: CakePHP, PHP, Programming, Web Development | No Comments »
Posted on February 28th, 2008 by lost-in-code
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 [...]
Tags: CakePHP, cron, crontab, dispatcher, php, schedule
Filed under: CakePHP, PHP, Programming, Server Management, Web Development | No Comments »
Posted on September 20th, 2007 by lost-in-code
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 [...]
Tags: CakePHP, delete, deleteall, multiple, php, records
Filed under: CakePHP, PHP, Programming, Web Development | No Comments »