I'm trying to use SimplePie with Codeigniter but I can't get even the view to display if I try to load the simplepie library. I've downloaded the Haughin CodeIgniter library (http://www.haughin.com/code/simplepie/) and put it in the applications/libraries folder, but nothing works. I have the code below, but it doesn't really matter what it is -- as long as I try to load simplepie, nothing outputs. The error log just says:
zend_mm_heap corrupted
Code is below, copied from Haughin's site.
Here is my controller:
function index()
{
$this->load->library('simplepie');
$this->simplepie->set_feed_url('http://feeds.haughin.com/haughin');
$this->simplepie->set_cache_location(APPPATH.'cache/rss');
$this->simplepie->init();
$this->simplepie->handle_content_type();
$data['rss_items'] = $this->simplepie->get_items();
$this->load->view('chatter/ch_index', $data);
}
Here is my view:
<?php
echo "<li>";
foreach($rss_items as $item) {
echo "<li>";
echo "<a href='" .$item->get_link() . "'>";
echo $item->get_title();
echo "</a>";
echo "</li>";
}
echo "</li>";
?>
Any thoughts?