This commit is contained in:
parent
75e0f3a900
commit
6f95cd6cc6
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user