Hi guys,
I am looking at making use of certain RSS feeds, XML files from a site
to display certain content on their.
I have tried with simplepie but no luck.
Is there anybody that could tell me if there are any solutions to help
you too display RSS in your controllers.?
Controller
<?php
class RssController extends AppController{
var $name = "Rss";
var $components = array('Simplepie');
// As the RSS will not currently use a database
var $uses = array();
function index() {
App::import('Xml');
$file = "feed://wordsmith.org/awad/rss1.xml";
$parsed_xml =& new XML($file);
$parsed_xml = Set::reverse($parsed_xml);
debug($parsed_xml);
echo $parsed_xml;
}
}
?>
dont know where to start with the view...
any help would be appreciated.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en