Steniskis is right, it's not clear what you're trying to do.  If  you
want to use a model class to perform your validation for you you can
use one as long as you don't try to save that data, but you need to
explicitly call the validate function on the model after it has been
populated with your data.  For example if I have a model Person with
the attributes firstName and lastName and both fields are required I
could do the following.

$data['Person']['firstName'] = 'John';
$data['Person']['lastName'] = 'Smith';
$valid = $this->Person->validates($data);

This checks to make sure both fields are populated but doesn't try to
save the information to the database.
If you don't want to use a defined model then you can access all the
submitted form fields in the controllers data array for explicit
validation, but you will have to write all the validation code
yourself.

HTH

Zac

On Feb 7, 12:02 am, "Tazz" <[EMAIL PROTECTED]> wrote:
> I have a form I would liek to validate which does not save to a
> model...
>
> How would I go about it?
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to