+
+ public function rsscheckAction()
+ {
+ $url = $this->url()->fromRoute('galerie/rss', array(), array('force_canonical' => true));
+ $channel = FeedReader::import($url);
+ $title = $channel->getTitle();
+ $author = $channel->getAuthor();
+ $username = $author['name'];
+ $galeries = array();
+ foreach ($channel as $item) {
+ $galeries[] = "{$item->getTitle()} : {$item->getDescription()}";
+ }
+
+ return new ViewModel(array(
+ 'title' => $title,
+ 'username' => $username,
+ 'galeries' => $galeries,
+ ));
+ }