Not a charset problem, 99% confirmed.
I try the following code to figure out what's happening:
<?php
debug($this->data['Profile']['last_name']);
echo $form->text('Profile.last_name',array('label' => false));
?>
<input id="ProfileLastName" type="text" value="<?php echo $this->data
['Profile']['last_name']; ?>" label="" name="data[Profile][last_name]"/
>
One text input using the form helper and another one typing it
"classically". You can see an output screen capture at
http://yfrog.com/0wwtferij
The same using UTF-8.
Weird.
On Jul 22, 1:00 am, Mark <[email protected]> wrote:
> use utf8 throughout your website
> saves you usually a lot of trouble :)
>
> On 21 Jul., 23:34, Xoubaman <[email protected]> wrote:
>
> > Hello
>
> > I'm having problems with the form helper. When a field contains chars
> > like ñ or vocals with accent, the value is not set to the
> > corresponding input.
>
> > ie, $this->data is
> > Array
> > (
> > [User] => Array
> > (
> > [id] => 1
> > [username] => foo
> > )
>
> > [Profile] => Array
> > (
> > [id] => 1
> > [user_id] => 1
> > [first_name] => Carlos
> > [last_name] => Gándara
> > )
> > )
>
> > but echo $form->input('Profile.last_name',array('label' => false));
> > shows an empty text field.
>
> > In the layout i'm using $html->charset('ISO-8859-1'); but I don't
> > think the problem is here because $this->data gets the correct value.
>
> > Any idea? Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---