I am looking for an answer related to validation and haven't been able
to track it down. I am using cake v1.1.13.4450 and all validation is
done at the model level using beforeSave().

The goal is to invalidate and then prepopulate a field so that it will
display with an error but will have the content I specify.

Something like:

app/models/model.php:
...
function beforeSave()
{
...
$this->invalidate('field');
$this->data['Model']['field'] = 'New content';
...
}

...but that doesn't work.

Any tips would be appreciated.

Thanks,
- Tony


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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