diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-20 19:14:34 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-20 19:14:34 -0400 |
commit | 2a15c85cd9c08af627798c61eced0511b05a1ac3 (patch) | |
tree | 96824baa8d9748669851fd95714448d2bcd880fd /templates | |
parent | 4cb80788b059506fa30c8aeae3da87dec931332b (diff) |
fetching items from remote feed working now
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/main.php b/templates/main.php index d4cc21082..88d1b9fb8 100644 --- a/templates/main.php +++ b/templates/main.php @@ -3,8 +3,10 @@ $feed = new OC_News_Feed( 'http://algorithmsforthekitchen.com/blog/?feed=rss2' ); $mapper = new OC_News_FeedMapper(); $mapper->insert($feed); -$mapper->find($feed->getId()); +$feed = $mapper->find($feed->getId()); echo "<br>" . $feed->getTitle() . "<br>"; +$items = $feed->getItems(); + /* $item = $feed->get_item(1); |