Re: Models problem

2010-09-20 Thread Tilen Majerle
emm...before u call $this->ModelName->validates() you need to set the data for validation...so do something like this: {{{ $this->ModelName->set($this->data); $validate = $this->ModelName->validates(); //will return true or false }}} and if u have something like that with associated models mayb

Models problem

2010-09-20 Thread newbie
Hi. I was trying to debug an issue where whenever I perform $this- >ModelName->Validates(), it always returns true. However, I discovered that if I deleted all the files in the Model folder, I didn't get any errors. I was able to save queries to the database, regardless. What is wrong? Is this expe