You can't add a multi option to a text element. Only select, radio, and
multiCheckbox elements support this.

--
Hector


On Thu, Feb 4, 2010 at 11:16 AM, Filipe Veloza <[email protected]>wrote:

>
> Hi,
>
> I'm trying to figure out a curious situation, any help would be VERY
> appreciated.
>
> Developed a form based on Zend Framework on a Fedora 11 system with package
> php-ZendFramework-1.9.7-1. And all worked fined.
>
> Then ported the form to Fedora 8 with Zend Framework 1.10 installed at
> /opt.
>
> Added /opt/ZendFramework/lib to php.ini:include_path.
>
> But every time I try to run the form I get the following error :
>
>  PHP Fatal error:  Uncaught exception 'Zend_Form_Element_Exception' with
> message 'Method addMultiOption does not exist' in
> /opt/ZendFramework-1.10.0-minimal/library/Zend/Form/Element.php:951\nStack
> trace:\n#0 [internal function]: Zend_Form_Element->__call('addMultiOption',
> Array)\n#1 /home/app/inc/actions/invitation.class.php(222):
> Zend_Form_Element_Text->addMultiOption('1', 'Portuguesa')\n#2
> /home/app/actions/invitation.php(66):
> Invitation->reg_step_1('a39a2286c987386...')\n#3 {main}\n  thrown in
> /opt/ZendFramework-1.10.0-minimal/library/Zend/Form/Element.php on line 951
>
> Any ideias ?
> --
> View this message in context:
> http://n4.nabble.com/PHP-Fatal-error-Uncaught-exception-Zend-Form-Element-Exception-with-message-Method-addMultiOption-do-tp1469274p1469274.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Reply via email to