Hi Metthew,

Any luck fixing this?

Regards,
Emil Ivanov

On 10/03/2008, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
> -- Arthur M. Kang <[EMAIL PROTECTED]> wrote
>  (on Monday, 10 March 2008, 11:57 AM -0700):
>
> > Using latest SVN (8721).
>  >
>  > Not a major issue but when using translation and a multi element with 
> arrays as
>  > the options (optgroup), warnings are raised.  Don't know if this is a multi
>  > issue or a translation issue so I didn't file anything...
>  >
>  > Controller:
>  > $translate = new Zend_Translate('array', array('Select Test'=>'Select Test
>  > Translated'), 'en');
>  > Zend_Registry::set('Zend_Translate', $translate);
>  > $form = new Zend_Form(array(
>  >     'elements' => array(
>  >         'test' => array('Select', array(
>  >             'label' => 'Select Test',
>  >             'MultiOptions' => array(
>  >                 'Group 1' => array(
>  >                     '1-1' => 'Hi 1-1',
>  >                     '1-2' => 'Hi 1-2'
>  >                 ),
>  >                 'Group 2' => array(
>  >                     '2-1' => 'Hi 2-1',
>  >                     '2-2' => 'Hi 2-2'
>  >                 ),
>  >             )
>  >         ))
>  >     )
>  > ));
>  > $this->view->form = $form;
>  >
>  > With...
>  >
>  > View:
>  > <?=$this->form?>
>  >
>  > Produces...
>  >
>  > Warning: array_key_exists() [function.array-key-exists]: The first argument
>  > should be either a string or an integer in 
> /directory/library/Zend/Translate/
>  > Adapter.php on line 452
>
>
> I think I know what this is -- can you file an issue, please?
>
>
>  --
>  Matthew Weier O'Phinney
>  PHP Developer            | [EMAIL PROTECTED]
>  Zend - The PHP Company   | http://www.zend.com/
>


-- 
My place to share my ideas:
http://vladev.blogspot.com

Reply via email to