layout = '';//It is best to give it a null layout because using ajax whatever is shown in this view will be the output on the form page $this->AjaxValid->return = 'javascript';//This specifies how you want the validation result returned. Your three options here are javascript, html, and arrary. The javascript returns as an alert (which bugs some people, but it is commonly used. html is nicer, it returns as an unordered list that you can modify with css. array is just for debugging purposes. $this->AjaxValid->changeClass('errors');//This is an option that will change the class of the erroneous field labels. I use error, but use what you want. $this->AjaxValid->setForm($this->data,'User/index','redirect');//This is where you send the data from the form through to the component, so you probably want to leave the first parameter as $this->data, the third tells it to redirect after it is valid, and it redirects to the url in the second parameter. $this->AjaxValid->required(array('User/fname','User/lname','User/email','User/password'));//this means that you are requiring these fields to be valid according to the validation in the model. $this->AjaxValid->unique(array('User/email');//This checks to make sure that the email entered by the user is unique. $this->AjaxValid->confirm('User/password', array('User/confirm'), 'Your passwords do not match');//This is designed for creating a new password. If you have a user type in a password and retype it to confirm they didn't screw it up. It just checks the string in the first parameter matches all the strings in the array of the second parameter. The third parameter is the text that is returned by the validator. $this->set('data',$this->AjaxValid->validate());//This sends the validation result to the validator view. $this->set('valid',$this->AjaxValid->valid);//This sends a boolean of the result of the validation to the validator view, whether it is true(valid) or false(invalid) if($this->AjaxValid->valid){//In this example I have the validator action save the data from the form if it is valid and then the view will redirect it. $this->User->save($this->AjaxValid->form['User']; } }?>