1. Before rendering the view it's a good idea to unset any sensitive
information in Controller::$data. This way, the form will get to
display the errors and the password fields will stay empty.

2. The error comes from the call to:

    FormHelper::error()  =>  h()  =>  htmlspecialchars($this->validate
['email']['message'], ENT_QUOTES, 'UTF-8');

A potential workaround is to manually output the error message without
escaping. Something like:

    $form->input('email', array('error' => false));
    $form->error('email', 'Bad E-Mail - Ungültige EMail', array
('escape' => false));

On Jul 8, 4:26 pm, Taff <[email protected]> wrote:
> I'm rather new to cakePHP and am experimenting with it, in the hope
> that it will be the framework I will use for a multilingual site I
> have been tasked with. The site will be available in German and
> English.
>
> Problem 1: When the form doesn't validate correctly it is reloaded
> with the password already hashed. Presumably the password will then be
> "rehashed" upon saving, meaning the person can no longer login? Is
> there a workaround or solution available?
>
> Problem 2: I am also playing with $validate and have the following in
> my model:
>
> var $validate = array(
>         'email' => array(
>         'rule' => 'email',
>         'message' => 'Bad E-Mail - Ungültige EMail'
>         )
>     );
>
> Unfortunately the ü isn't being displayed correctly, and &uuml; also
> doesn't work (The ampersand is being encoded). Either the entire error
> message is not being displayed or the encoding is incorrect.
>
> Configure::write('App.encoding', 'UTF-8');
>
> is in the core and the header of the document looks like
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
>         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
> Where am I going wrong?
> Thanks,
> Taff
--~--~---------~--~----~------------~-------~--~----~
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