i get this error when i use the simplepie class
Fatal error: Class 'SimplePie' not found in C:\wamp\www\SilverStripe01\mysite\code\HomePage.php on line 67
i am using this
function CustomRSSFeed() {
$feed = new SimplePie("http://feeds.guardian.co.uk/theguardian/world/rss");
$feed->feed->init();
$output = new DataObjectSet();
if($items = $feed->feed->get_items(0, 10)){
foreach($items as $item){
$output->push(new ArrayData(array(
"Title" => $item->get_title(),
"Link" => $item->get_link()
)));
}
}
return $output;
}
and
<% control CustomRSSFeed %>
$Title
<% end_control %>
:(