I have a quite complex form setup using Zend-Form. At one point I'm setting value of a hidden input using :
$oHidden = new Zend_Form_Element_Hidden('ratings'.$k);
$oHidden->setValue('ratings');Zend_Debug::dump($oHidden);
$this->addElements(array($oHidden));
This method works well in other places of the same form, but this one, and another one just like i t outputs :
<input type="hidden" name="ratings1" value="" id="ratings1" />
I've dumped the $oHidden variable and it outputs :
object(Zend_Form_Element_Hidden)#143 (29) {
...
["_value":protected] => string(7) "ratings"
["_view":protected] => NULL
["_isPartialRendering":protected] => bool(false)
}
So it sets the value just fine for a while but it doesn't render it. Please let me know where to start looking reasons for this behavior.
Thanks, Alek
isValid()method. Need to see more of the code to confirm.