On 4/27/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
>
>
> > if (!empty($this->modelNames)) {
> > foreach($this->modelNames as $model) {
> > if
> > (!empty($this->{$model}->validationErrors)) {
> >
> > $this->__viewClass->validationErrors[$model] =
> > &$this->{$model}->validationErrors;
> > }
> > }
> > }
>
> replace the above chunk with just
>
> $this->__viewClass->validationErrors = &$this->validationErrors;
>
>
> and see what happens
Yeah, I tried that, didn't work. I didn't think it would anyway, since the
errors are not part of $this->validationErrors. They are in
$this->(Model)->validationErrors (and since I also have deeper related
models that may have validation errors, I may even have
$this->(Model1)->(Model2)->validationErrors ... so there's gotta be some
solution for this)
Cheers
Gonz
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---