I had to fix a few things before it started working:

1. On fieldErrors() at error helper i changed parameter name from
$fieldName to $target.

2. I removed all contentTag() declarations and made the fieldErrors()
method return the first error found instead.

3. On the controller, $model->validates() is not longer working, so you
can't do stuff like:

if ($this->Model->validates($this->data))
$this->Model->save($this->data)

But plain:

if ($this->Model->save($this->data))

Other than that great job.

PS: How can we get notified when this snippet updates? Through the
Bakery maybe?


--~--~---------~--~----~------------~-------~--~----~
 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