Wow, thanks a million.
To answer your question, I'm using a wizard (Wizard Component to be
specific) for an "add" action. Since the data is stored on every step
but only "saved" in the last step of the wizard, I want to validate on
every step for obvious reasons.
Thanks again :)
On 19 mar, 22:0
saveAll has an $options array as one of its parameters, and one of the
permitted options is "validate" which can be set to "only" to only
validate and not save. Example: $this->Model->saveAll($this->data,
array('validate' => 'only'));
However, I'm curious as to why you're not wanting to save if t
Hello,
I'm trying to validate multiple records from one single form (using
$form->input('Model.X.Field'), but I don't want the records to be
saved if the validation success.
So far, I was using Model::validates to validate my fields, but this
method only returns invalid fields for one record.
I