Re: Validation before save()

2007-01-29 Thread AD7six
On Jan 29, 10:14 am, Michal Bilcik <[EMAIL PROTECTED]> wrote: > Nazdar, > > 29. 1. 2007, codecowboy napisal: > > > I'm not sure if I fully understand your problem, but if you are trying > > to save without validating then call save like this:No, i need validating > > without saving. In my model

Re: Validation before save()

2007-01-29 Thread Michal Bilcik
Nazdar, 29. 1. 2007, codecowboy napisal: > I'm not sure if I fully understand your problem, but if you are trying > to save without validating then call save like this: No, i need validating without saving. In my model I have standard validating rules: var $validate = array( 'name' => V

Re: Validation before save()

2007-01-28 Thread codecowboy
I'm not sure if I fully understand your problem, but if you are trying to save without validating then call save like this: // Tell the model to save without validating the data $this->Model->save($this->data, false); - This is a snippet from the Cake API about the model funct

Validation before save()

2007-01-28 Thread Michal Bilcik
Hello again, in my app people can upload files (images), so before i do $this->WaypointPhoto->save($this->data) i do things like resizing images, moving images from temp dir to my app dir,..etc: 1. move image from temp dir to app dir 2. make thumbnail from original image 3. save it to DB: $this-