06.27
php
saved
Nayosis
Note
RSS Function doesn't work.
RSS Function doesn't work.
- //Le Controller
- function rss($articles){
- }
- // La Vue
- <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <channel>
- <title>monsite.fr : les news</title>
- <link>http://www.monsite.fr/</link>
- <description>Toutes les news</description>
- <language>fr</language>
- <generator>CakePHP</generator>
- <webMaster>webmaster@monsite.fr</webMaster>
- <?php
- e($rss->items($articles, 'sortieRSS'));
- function sortieRSS($article){
- 'link' => 'http://www.monsite.fr/articles/view/'.$article['Article']['id'],
- 'pubDate' => $article['Article']['datePublication']
- );
- }
- ?>
- </channel>
- </rss>
Parsed in 0.073 seconds, using GeSHi 1.0.7.14