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>
2009年7月29日星期三
订阅:
博文评论 (Atom)
没有评论:
发表评论