I'm experiencing my controller validating data even though the model
has set a $validate array.

I have two different controllers and models, A and B.

So in controllerA, i have a $uses = modelB.
Also I have a viewA function that adds data into tableB using $this-
>ModelB->saveAll($this->data)
In modelB, I have a $validate table that corresponds with the
individual fields in the tableA/form.
Also in viewA, i have a form that is corresponds to the model of B.
However it always saves into tableB even when I put in bad data that
should not validate.

Then I tried using the exact same code in controllerB and started
showing the individual validation messages for the form.

Can anyone explain why this happens?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to