Re: Data validtation

2010-06-23 Thread Jeremy Burns | Class Outfit
I notice a couple of things. Surely you model name should be InviteApply (note the capital i)? When you check if ($this->inviteApply-validates()) you will only get true or false. In fact, you don't need to check if it validates as that is part of the save function. Try this instead: if (! $this

Data validtation

2010-06-23 Thread Amit Kumar
Hi! I am new to cakePHP, and have been trying to develop an application with it. While using cakePHP i created a model with these validation rules... var $validate = array( 'name' => array( 'rule'=>array('minLength', 1), 'message'=>'Name is required' ), 'ema