this working right $arr['data']['Invoice'] = $invoice['Invoice']; $arr['data']['Client'] = $invoice['Client']; $arr['data']['Seller'] = $invoice['Seller']; $arr = new Xml($arr); echo '<pre>'; echo $arr; //echo new Xml($invoice['Client']); echo '</pre>'; debug(Set::reverse($arr));
On May 28, 12:53 pm, "[email protected]" <[email protected]> wrote: > so i have problem with Xml component > > my arry from find loks like that > > array( > [Invoice] => array(...) > [Seler] => array(...) > > so its good... > > after > $xml = new Xml($invoice); > xml loks like that (this is stupid...) > <invoice ... /><seler ...></invoice> > > after > $result = Set::reverse($xml); > > arr loks like bad... that > array( > [Invoice] => array( > [Seler] => array(...).... > ) > > full example > > App::import('Core','Xml'); > debug($arr); > $xml = new Xml($arr); > debug($xml); > $arr = Set::reverse($xml); > debug($arr); > exit; > > whats wrong ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
