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' => VALID_NOT_EMPTY
...
);
and also I do same validation (I check MIME type, size,...) in beforeValidate()
But when when I call model validation:
$this->WaypointPhoto->validates($this->params['data']);
in beforeValidate() function is variable $this->data empty!!
I found solution, it was bug:
https://trac.cakephp.org/ticket/1040
the same problem:
http://groups.google.ch/group/cake-php/browse_thread/thread/dacf48fb7735a28f/fbcdc9fa3f69500d
Solution: "Model::validates is no longer support..."
Manual is very obsolete :(
--
Michal Bilcik
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---