[Solar-talk] orderElements()
Jeff Surgeson
solar at 3hex.com
Tue Jul 11 06:15:01 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',
'origin',
'incoterms',
'loadport',
'destport',
'target_price',
'max_price',
'neg_price',
'pay_terms',
'req_doc',
'include',
);
$form->orderElements($neworder);
//solar::dump($form->elements);
return $form;
}
--
Jeff Surgeson
More information about the solar-talk
mailing list