Tnx Gwoo.
This is more appropriate, but you can still use Set::reverse. (if
input is an XML object, reverse will convert it to array)

@Tonyz
You can grab feed items using Set class too:
$items = Set::extract($worpressPosts, 'Rss.Channel.Item');
pr($items);



On Dec 22, 9:39 pm, Gwoo <[email protected]> wrote:
> majna,
> very close. syntax is slight different
>
> App::import('Core',  'Xml');
> $wordpress = new XML('http://wordpres_rss_url_here);
> pr($wordpress->toArray());
>
> //notice toArray instead of Set::reverse()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to