[Solar-talk] orderElements()

Paul M Jones pmjones at solarphp.com
Tue Jul 11 11:09:27 PDT 2006


Hi Jeff,

> 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',
>                     'origin',
>                     'incoterms',
>                     'loadport',
>                     'destport',
>                     'target_price',
>                     'max_price',
>                     'neg_price',
>                     'pay_terms',
>                     'req_doc',
>                     'include',
>         );


Try $neworder = array('bd_metals[id]', 'bd_metals[period]', ...), let  
us know if that works.


--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list