cakephp validation from both model and controller
问题 I have given validation in model. Also, I have given some validation in controller for checking the captcha code. After that, the application is not displaying the model validation errors. If I comment the controller code, model validation is working fine and displaying the errors. Both not working.. Model code (sample) class User extends AppModel { var $name = 'User'; var $validate = array( 'username' => 'notempty', 'firstname' => 'notempty' ); } Controller code if (!empty($this->data)) {