Hi.
I have a problem with translation validation messages. seems it didn't
takes from view.
I have a validation rules for field, it looks like:
'looking_agegroup_to' => array(
'checkRange'=>array (
'rule' =>
array('range', 16, 100),
'message' =>
'Please enter a number between 16 and 100',
'allowEmpty' =>
true
),
'checkAgeGroup' => array(
'rule' =>
array('_checklookingAgeGroup'),
'message' =>
'Please check age in the from and to checkboxes',
)
),
on my view I have displayed this field like this
echo $form->input('ProfileExtend.looking_agegroup_to',
array('label'=> __('to:',true),
'div' => array('class' =>
'shortselect2'),
'empty' => '----',
'options' => $age_range,
'error' => array(
'checkRange'
=> __('Please enter a number between 120 and 210', true),
'checkAgeGroup' =>
__('Please verify data in the age fields', true)
),
)
);
When error happened I see a message which is set in the validation
rule, not what I set in the view.
If someone knew a solution - please help me. This bug is killing me.
Thanks a lot.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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