2009年3月4日星期三

[fw-mvc] Zend Dojo Form Hidden Element

Anyone know how to do a hidden form element when using Zend_Dojo_Form?

I get an error about not being able to open Zend/Dojo/Form/Element/Hidden.php
The element works if the form extends Zend_Form, but breaks when I
extend Zend_Dojo_Form.

I also tried creating a Zend_Dojo_Form_Element_TextBox and setting
setting the type attribute to hidden, but element was still rendered
as a type of text.

$element = new Zend_Dojo_Form_Element_TextBox();
$element->setAttrib('type', 'hidden');
$this->addElement($element);

Thanks,
Ed

没有评论: