cakephp
How do you specify an HTTP status code in Cakephp?
EDIT – This question is quite old and covers different versions of the CakePHP framework. Following is a summary of which version each answer applies to. Don’t forget to vote on the solution that helps most. CakePHP 3.x and 4.x – using response object (Roberto’s answer) CakePHP 2.x – using exceptions (Brad Koch’s answer) [preferred … Read more
How do I update 1 field in CakePHP?
you can use saveField to do this for example $this->Event->id = $id; $this->Event->saveField(‘is_featured’, true);