2009年7月29日星期三

[fw-mvc] encoding Zend_form UTF-8 to ISO...

Hi, I have a question, How indicate to Zend_form the encoding?  I want to use encoding ISO because my app is in this charset, but the Zend_form is utf-8 currently
Greetings and thanks

I have this code:
Controller:

            $form = new Zend_Form();
            $form    ->setName()
                    ->setAction()
                    ->setMethod('post');

          $form->addElement('hidden','idRes',array(
                                'value' => $idRes
                                ));

            $form->addElement('text','Name',array(
                    'label' => 'Name:',
                    'value' => $resto[0]['Name'],
                    'decorators' => $this->decorators_left
                    ));

View:
<form id = "Name" action="<?php echo $this->formVoto->getAction(); ?>">
            <?php echo $this->formVoto->idResto; ?>
            <?php echo $this->formVoto->Name; ?>
</form>

没有评论: