Código PHP:
<label>Nombre</label>
<div class="elem-form">
<input type="text" name="category_name" id="category_name" value="" />
</div>
<input type="hidden" name="id" value="" id="id" />
<div class="elem-form">
<input type="submit" name="submit" id="submit" value="Save" />
</div>
Código PHP:
class Admin_Form_Category extends Zend_Form
{
public function init()
{
$category_name = new Zend_Form_Element_Text('category_name');
$category_name
->setLabel('Nombre');
$submit = new Zend_Form_Element_Submit('submit');
$submit
->removeDecorator('Label');
$id = new Zend_Form_Element_Hidden('id');
$this
->addElement($category_name)
->addElement($id)
->addElement($submit)
}
}
gracias