Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 755 Bytes

2009-12-10-cakephp-disable-validation-in-controler.md

File metadata and controls

21 lines (16 loc) · 755 Bytes
title date categories Tags slug
CakePHP - Disable validation in controler
2009-12-10 06:52:00 -0800
Development
cakephp
php
Tips
validate
cakephp-disable-validation-in-controler

When upgrading an old web application to start using CakePHP but the old systems was riddled with invalid data. When the creating the CRUD system I need a way of updating this invalid data.

The following line of code will disable the validation in the controller.

$this->Story->validate = array(); // Stop valadation on the story.

Source: Cakephp Save with a table where the primary key is not €˜id"