$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, "andrzejborkow...@gmail.com"
<andrzejborkow...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment