On Wed, Dec 10, 2008 at 8:51 PM, iceh <[EMAIL PROTECTED]> wrote:
>
> I'm having trouble creating hidden form elements with Zend_Form.
>
> I am using this syntax:
>
> class Form_Invoices_PaypalForward extends Zend_Form
> {
> public function init()
> {
> $custom = Zend_Form_Element_Hidden('custom');
>
> }
> }
>
> However it is erroring out:
> "Fatal error: Call to undefined function Zend_Form_Element_Hidden()"
>
> Is there some different method that should be used for hidden elements?
> Zend_Form_Element_XXXX() method works with any other form element for me.
OO!
$custom = new Zend_Form_Element_Hidden('custom');