Doh, I feel like an idiot. Thanks for the help Till

Till Klampaeckel-2 wrote:
> 
> 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');
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Creating-hidden-elements-tp20942849p20943177.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to