bien, pero en mi view no tengo ningun form. yo he creado un form.
de esta forma:
zf create form clientes (ejemplo)
y dentro de ese form tengo esto:
Código PHP:
<?php
class Application_Form_Consulta extends Zend_Form
{
public function init()
{
//$this->getMethod('Post');
$this->setMethod(Zend_Form::METHOD_POST);
//$form->setMethod('post');
/* $this->addElement('text','nombre', array(
'label'=>'your is name:',
'required' =>true,
'validators' => array(
'EmailAddress',)
));
*/
$this->addElement('text', 'nombre', array (
'label' => 'Your is name:',
'required' => true,
'filters' => array ('stringTrim'),
));
$this->addElement('text', 'apellido', array (
'label' => 'Your is last:',
'required' => true,
));
$this->addElement('submit', 'submit', array (
'ignore' => true,
'label' => 'Sign Clientes',
));
}
}