Hi,

I am working on a Website in spanish and came across a problem with
fault messages in a Webform.

I have defined the following model:

MODEL:
                         var $validate = array(
                                                'name'          =>        array(
                                                                        'rule' 
=> 'notEmpty',    // any type of character
                                                                        
'required' => true,
                                                                        
'message' => 'Su nombre es un campo obligatorio',
                                                                        'last'  
        => true
                                                                        ),

                                                'address'       =>        array(
                                                                        'rule' 
=> 'notEmpty',    // any type of character
                                                                        
'required' => true,
                                                                        
'message' => 'Su dirección un campo obligatorio'
                                                                        ),
                                                                        .....
                                                                        .....
                                                                        .....
                                                                        )

and the view for the Webform:

enroll.CTP:

       .....
        .....

<?php echo $form->input('address', array(
                                'label' =>      'Direcci&oacute;n: <strong 
title="Required"
class="mandatory">*</strong>',
                                )) ?>
        ........
       ...........



In the form it is easy to introduce spanish characters in the text, in
the "label" keyword I just use "&oacute;"
and it will display an o with an accent, in other words the correct
spanish character.


When the user does not enter the address in the webform the Error
message
as defined in the model is displayed. I don't seem to be able to
generate a spanish
character and the trick with "&oacute;" does not work.

in the file "core.php" I have the default:
        Configure::write('App.encoding', 'UTF-8');


Any suggestions?

/Antoine

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to