cakePHP 2.0 read rss feed
i try to read rss feed from http://kurinchilamp.kurinchilion.com/2009/06/cakephp-parsing-rss-feed-in-simple-steps.html then error
Error: Class 'XML' not found
File: /home/pos/cakeProject/XXX/app/Controller/FeedsController.php
Line: 11
XMl not found
this my controller
<?php
class FeedsController extends AppController {
var $feed_url = "http://kurinchilamp.kurinchilion.com/feed";
var $rss_item = array();
function read() {
App::import('Xml');
$parsed_xml =& new XML($this->feed_url);
// xml to array conversion
$this->rss_item = $parsed_xml->toArray();
$this->set('data', $this->rss_item['Rss']['Channel']['Item']);
}
}
tell to fix this error .
thanl you
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home