Hello Readers;
If you want to remove the validation in cakephp from the Model dynamically then use the below one line code.
$this->validator()->remove('username');
The above validation completely remove all rules for a field.(Here we use username as a example)
And you also used:
$this->validator()->remove('password', 'required');
The above one remove only required rule giving into the Model in cakephp. (Here we use password as a example)
0 Comment(s)