This commit is contained in:
Damien LASSERRE 2011-05-17 09:39:51 +00:00
parent 75e0f3a900
commit 6f95cd6cc6

View File

@ -235,4 +235,18 @@ class IdentiteController extends Zend_Controller_Action
$this->view->assign('evens', $evens);
}
public function newsAction()
{
$session = new SessionEntreprise($this->siret, $this->id, true);
$url = 'http://news.google.fr/news?hl=fr&ned=fr&q='.
urlencode('peugeot').'&output=rss';
require_once ('magpierss-0.72/rss_fetch.inc');
$rss = fetch_rss($url);
$items = array_slice($rss->items, 0, 5);
$this->view->assign('items', $items);
}
}