diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-17 22:59:49 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-17 22:59:49 -0400 |
commit | 4d612fa6f06d9d1c1e68806aef607a36a04f4f38 (patch) | |
tree | 1d528ad67f0a69e72512d9bb50cf627ccfa6fd33 /templates/main.php | |
parent | 482377467900901cee323c7b6375f57f22fd1458 (diff) |
new classes for the data mapping
Diffstat (limited to 'templates/main.php')
-rw-r--r-- | templates/main.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/main.php b/templates/main.php index f6eabb799..d4cc21082 100644 --- a/templates/main.php +++ b/templates/main.php @@ -2,8 +2,8 @@ $feed = new OC_News_Feed( 'http://algorithmsforthekitchen.com/blog/?feed=rss2' ); $mapper = new OC_News_FeedMapper(); -$feed_id = $mapper->insert($feed); - +$mapper->insert($feed); +$mapper->find($feed->getId()); echo "<br>" . $feed->getTitle() . "<br>"; /* |