free hit counter

Remove Cakephp Model Field Validation from Controller

Remove Cakephp Model Field Validation from Controller
  in Cakephp we set all validation in model ! but many time we didn’t need some validation for particular field ! in that condition  how to remove that validation ? its very simple , you need to write some line in controller   //Remove only Single Rule of a field       $this->User->validator()->remove(‘phone’, ‘rule1′);       //Completely remove all validation rules of  a field       $this->User->validator()->remove(‘phone’);     First Line of ...