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 » CakePHP » SimplePHP

Differences

This shows you the differences between two versions of the page.

plugins:cakephp:simplepie_module [2007/06/24 01:45]
admin
plugins:cakephp:simplepie_module [2011/03/06 03:56] (current)
Line 1: Line 1:
-====== SimplePie Component ======+====== SimplePHP ======
 ===== The Basics ===== ===== The Basics =====
-^  Main page | [[http://cakeforge.org/snippet/detail.php?type=snippet&id=53|SimplePie Component]] | +^  Main page | [[http://bakery.cakephp.org/articles/view/simplepie-cakephp-component|SimplePHP]] | 
-^  Author | [[http://cakeforge.org/users/manta/|Scott Sansoni]] | +^  Author | [[http://www.pseudocoder.com/archives/2007/07/23/simplepie-cakephp-component/|Matt Curry]] (based on work by [[http://cakeforge.org/users/manta/|Scott Sansoni]]
-^  Plugin Version | 0.0.1 |+^  Plugin Version | 1.0 |
 ^  Compatible CakePHP version | 1.x | ^  Compatible CakePHP version | 1.x |
-^  Download | [[http://cakeforge.org/snippet/detail.php?type=snippet&id=53|Download]] | +^  Download | [[http://sandbox.pseudocoder.com/files/CakePHP-SimplePie-Component-v1.0.zip|Download]] | 
-^  Required SimplePie version | Beta 3 (not 1.0-compatible) |+^  Required SimplePie version | 1.0 |
 ^  Optional Helpers | Unknown | ^  Optional Helpers | Unknown |
 ^  Plugin Support | None | ^  Plugin Support | None |
  
 ==== About the Plugin ==== ==== About the Plugin ====
-The author has not yet updated this page with complete information Please check out the "Main Page&quotURL listed above.+SimplePHP is a PHP class for retrieval and parsing of RSS feeds. This is a wrapper to that class making it easy to use in the CakePHP framwork. Much of this component is taken from the work of Scott Sansoni (http://cakeforge.org/snippet/detail.php?type=snippet&id=53). This is mostly an update so the component works with the lastest version of SimplePie. 
 + 
 +==== What Do I Need To Know? ==== 
 +These instructions assume that you have a familiarity with working with the CakePHP framework. 
 + 
 +===== Installation ===== 
 +==== Fresh Installation ==== 
 +=== Step 1: Download both the required files above === 
 +Download SimplePie and unzip the contents. Move the ''simplepie.inc'' file to one of the vendors folders. Rename the file to ''simplepie.php''. I like to put the file in the subfolder with the README.txt and LICENSE.txt for easy reference. 
 + 
 +Download the SimplePHP component and unzip it to ''app/controllers/components''. 
 + 
 +=== Step 2: Include it === 
 +Include the component in any controller that will need it. 
 + 
 +===== Usage ===== 
 +==== How to use it ==== 
 +In your Controller Class: 
 +<code php> 
 +<?php 
 + 
 +$items = $this->Simplepie->feed('http://feeds.feedburner.com/pseudocoder');  
 + 
 +?> 
 +</code> 
 + 
 +In your View Template: 
 +<code php> 
 +<?php 
 + 
 +foreach($items as $item) 
 +
 + echo $html->link($item->get_title(), $item->get_permalink()) . '<br />';  
 +
 + 
 +?> 
 +</code>

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