summaryrefslogtreecommitdiffstats
path: root/templates/main.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-05-20 19:14:34 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-05-20 19:14:34 -0400
commit2a15c85cd9c08af627798c61eced0511b05a1ac3 (patch)
tree96824baa8d9748669851fd95714448d2bcd880fd /templates/main.php
parent4cb80788b059506fa30c8aeae3da87dec931332b (diff)
fetching items from remote feed working now
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php4
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);