-- Емил Иванов / Emil Ivanov <[EMAIL PROTECTED]> wrote
(on Friday, 28 March 2008, 03:24 PM +0200):
> Any luck fixing this?

I haven't had a chance to look at it yet, and I'm not sure Amr has filed
an issue (Amr: hint, hint ;-) ).


> 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
> 

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to