[Solar-talk] orderElements()

Jeff Surgeson solar at 3hex.com
Tue Jul 11 12:14:48 PDT 2006


Hi Paul

> > Why cant I get the orderElements() to reorder the
> > public function formAdd($data = null)
> > {
> > 	$form = self::form($data);
> > 	// set the text area attribs
> >         $form->elements['bd_metals[pay_terms]']['attribs']      =
> > array(
> >             'rows' => '20', 'cols' => '50');
> > 	$form->elements['bd_metals[req_doc]']['attribs']        = array(
> >             'rows' => '20', 'cols' => '50');
> > 	// reorder the elements
> >         $neworder = array(
> >                     'id',
> >                     'period',
> >                     'req_doc',
> >                     'include',
> >         );
>
> Try $neworder = array('bd_metals[id]', 'bd_metals[period]', ...), let
> us know if that works.

Cheers!

-- 
Jeff Surgeson


More information about the solar-talk mailing list