Tag Archive | "CakePHP"

CakePHP : Change view file from controller

Saturday, August 9, 2008

3 Comments

With CakePHP, the controller core automatically detects the file name of the view file which needs to be rendered from a controller action. You might want to reuse an existent view for an action or specify a different file name.

Continue reading...

CakePHP : Form Radio Default Checked Value

Thursday, April 17, 2008

0 Comments

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

Continue reading...

CakePHP Crontab

Thursday, February 28, 2008

1 Comment

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 [...]

Continue reading...

CakePHP : Delete multiple records

Thursday, September 20, 2007

1 Comment

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 [...]

Continue reading...