On Jun 24, 11:40 am, Antoine <[email protected]> wrote: > 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ó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 "ó" > 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 "ó" does not work. > > in the file "core.php" I have the default: > Configure::write('App.encoding', 'UTF-8'); > > Any suggestions?
Think a little bit, type ó, and move on. AD --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
