Hi, I have a problem with my RSS. That's my code :
// View <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>site.com : news</title> <link>http://www.site.com/</link> <description>All my news !</description> <language>fr</language> <pubDate><?php echo date("D, j M Y H:i:s", gmmktime()) . ' GMT'; ?></ pubDate> <generator>CakePHP</generator> <webMaster>[EMAIL PROTECTED]</webMaster> <?php foreach ($articles as $article): ?> <item> <title><?php echo utf8_encode($article['Article']['title']); ?></ title> <description><?php echo utf8_encode(strip_tags(html_entity_decode($article['Article'] ['chapeau']))); ?></description> <link>http://www.site.com/articles/view/<?= $article['Article'] ['id']; ?>/<?= $article['Article']['slug']; ?></link> <guid>http://www.site.com/articles/view/<?= $article['Article'] ['id']; ?>/<?= $article['Article']['slug']; ?></guid> <pubDate><?php echo $time->nice($time->gmt($article['Article'] ['datePublication'])) . ' GMT'; ?></pubDate> </item> <?php endforeach; ?> </channel> </rss> // Controller function rss($articles){ $this->layout = 'xml'; $conditions['and'] = array( 'Article.datePublication ' => '<= CURRENT_DATE', 'Article.article_id' => '>= 0' ); $fields = array('Article.id','Article.title', 'Article.slug', 'Article.datePublication', 'Article.chapeau', 'Sphere.title', 'Sphere.id', 'Sphere.slug'); $this->set('articles', $this->Article->findAll($conditions, $fields, 'Article.datePublication DESC', 10)); } This work on the firefox rss page. But doesn't work on google reader or an other. If I'm not explicit. Tell me. Thanks for all. Nayo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
