Thanks for the suggestion, gwoo.
Thanks to PhpNut too, for suggesting that I install the latest version
of cake. Now running 1.1.3.2967 and the validation works fine :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
jump on irc. http://irc.cakephp.org/irc.html
there we can help you debug the problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
T
Any ideas, please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For
Thanks for the help, but I haven't solved the problem.
Unfortunately, validationErrors is always empty, so I tried
pr($this->Quote->invalidFields($this->data)
which returned the following as expected:
Array
(
[start_date] => 1
[finish_date] => 1
)
What now?
--~--~-~--~~-
First, try this in your controller (after calling validateErrors):
pr($this->Quote->validationErrors);
See if the model is actually registering the errors with the fields.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
Can anyone help, please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTE
I'm using Cake 1.0.1.2708 on PHP 4.3.11
I'm having trouble getting form validation to show errors. Basic
example:
model:
class Quote extends AppModel
{
var $name = 'Quote';
var $validate = array(
'start_date'=>VALID_NOT_EMPTY,
'finish_date'=>VALID_NOT_EMPTY);
}
con