No there aren't any errors. I simplyfied the code for testing:
[code]
public function signup() {
if ($this->request->is('post')) {
$this->User->set($this->data);
if ($this->User->validates('email')) { // this
validation does
Does your User model "use" EmailAddress? Or is EmailAddress related to
User somehow?
Make sure you have debug turned on. Make sure the data you are sending
is correct. And make sure your model associations are correct.
Please post the actual errors you are getting.
On Jan 23, 4:17 am, Florin Tri
Hi
What do you mean when you say it doesn't work? Do you have an error message?
Best regards
On Mon, Jan 23, 2012 at 8:26 AM, Ivo Wolgensinger wrote:
> Dear all
>
> I have some difficulties to set up a proper validates()-function in
> the Controller. Everything in the function works fine, exept
Dear all
I have some difficulties to set up a proper validates()-function in
the Controller. Everything in the function works fine, exept the
validates() in the if construct. Here is my UserController, in which I
have to check an email entry with my EmailAddress-Model:
[code]
..
functi