SimplePie 1.5 is now available!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » SimplePie Plugins and Integration » zend » SimpleZend

SimpleZend

The Basics

Main page https://github.com/jfabian-pe/SimpleZend
Author Jesus Fabian (based on work by baphled)
Plugin Version 1.0
Compatible Zend Framework version 1.x
Download Download
Required SimplePie version 1.0
Optional Helpers Unknown
Plugin Support None

Installation

Download SimpleZend, decompress and copy in /library.

Usage

How to use it

In your Controller class:

<?php
    require_once 'simplezend/simplepie.php';
    $feed = new SimplePie('http://news.google.com.pe/news?pz=1&cf=all&ned=es_pe&hl=es&topic=h&num=3&output=rss');
    $feed->init();
    $this->view->title = $feed->get_title();
    $this->view->items = $feed->get_items();
    parent::init();
?>

In your View:

<?php
 
foreach($this->items as $item)
{
    echo $item->get_content();
}
?>

plugins/zend/simplepie_module.txt · Last modified: 2011/03/06 03:56 (external edit)