Re: ERROR_Adding an RSS feed using FeedCreator
Thanks Buddy... BUT, I just can create a rss by browser like http://localhost/cake/posts/rss And I can add it for my FF2.0 BUT it is contains nothing...Why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
Can you post the code? Mine's working well based on the tutorial.On 11/12/06, Eric [EMAIL PROTECTED] wrote: Thanks Buddy...BUT, I just can create a rss by browser like http://localhost/cake/posts/rssAnd I can add it for my FF2.0BUT it is contains nothing...Why?-- Adrian Godong[EMAIL PROTECTED]Microsoft Student Ambassador --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
Thank for your patient! I also do the tutorial said...and I also do your way change the $rss-outputFeed(); to $rss-saveFeed(); I have save the feed by my FF, and it appeard in my bookmarks Toolbar folder. BUT, It contains nothing Don't know why... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
I can't really help you without the code... Coz I think it's in the code.Also check your findAll statement, maybe it's empty because there is no data being passed.On 11/13/06, Eric [EMAIL PROTECTED] wrote: Thank for your patient!I also do the tutorial said...and I also do your way change the$rss-outputFeed();to $rss-saveFeed();I have save the feed by my FF, and it appeard in my bookmarks Toolbar folder. BUT, It contains nothingDon't know why...-- Adrian Godong[EMAIL PROTECTED]Microsoft Student Ambassador --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
- /app/views/layouts the file rss.thtml--- I paste it from the tutorial ?php echo $content_for_layout; ? --PostsController- ?php class PostsController extends AppController { //var $scaffold; var $name = 'Posts'; function index() { $this-Post-recursive = 0; $this-set('posts', $this-Post-findAll()); } function rss() { $this-layout = 'rss'; $this-set('posts', $this-Post-findAll(,, modified DESC, // Sort order 2 // Number to be returned )); } ---rss.thtml-- ?php vendor(feedcreator.class); $rss = new UniversalFeedCreator(); $rss-title = my title; $rss-description = my description; $rss-link = my link; $rss-syndicationURL = my syndication url; // Initialize the cssStyleSheet var, needed to avoid an error with FeedCreator version 1.7.2-mod (latest version at time of writing) $rss-cssStyleSheet = ; foreach ($posts as $post) { $item = new FeedItem(); $item-title = $post['Post']['title']; $item-link = link; $item-description = $post['Post']['body']; $newdate = $post['Post']['created']; list($date,$hours) = split(' ', $newdate); list($year,$month,$day) = split('-', $date); list($hour,$min,$sec) = split(':', $hours); $date = date(r, mktime($hour, $min, $sec, $month, $day, $year)); $item-date = $date; $item-source = source; $item-author = author; $rss-addItem($item); } $rss-saveFeed(); ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
Code looks good. If you're sure that the $posts contains any content, I really don't know what's wrong.IMHO, it's something with the database and/or the findAll statement. You can also try decomposing the problem into which part of Cake (the model, view, or controller). My first step would be checking out that $posts variable by adding debug($posts); line on the view.On 11/13/06, Eric [EMAIL PROTECTED] wrote:- /app/views/layouts the file rss.thtml--- I paste itfrom the tutorial?php echo $content_for_layout; ?--PostsController-?phpclass PostsController extends AppController{//var $scaffold;var $name = 'Posts'; function index() {$this-Post-recursive = 0;$this-set('posts', $this-Post-findAll());}function rss() {$this-layout = 'rss'; $this-set('posts', $this-Post-findAll(,,modified DESC, // Sort order2 // Number to be returned)); } ---rss.thtml--?phpvendor(feedcreator.class);$rss = new UniversalFeedCreator();$rss-title = my title;$rss-description = my description; $rss-link = my link;$rss-syndicationURL = my syndication url;// Initialize the cssStyleSheet var, needed to avoid an error withFeedCreator version 1.7.2-mod (latest version at time of writing) $rss-cssStyleSheet = ;foreach ($posts as $post){$item = new FeedItem();$item-title = $post['Post']['title'];$item-link = link; $item-description = $post['Post']['body'];$newdate = $post['Post']['created'];list($date,$hours) = split(' ', $newdate);list($year,$month,$day) = split('-', $date);list($hour,$min,$sec) = split(':', $hours); $date = date(r, mktime($hour, $min, $sec, $month, $day,$year));$item-date = $date;$item-source = source;$item-author = author; $rss-addItem($item);}$rss-saveFeed();?Thanks-- Adrian Godong[EMAIL PROTECTED]Microsoft Student Ambassador --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
yes. the $posts contains data. Cause I use ?php pr($posts)? to get data already. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
Thank Buddy. I am not alone. Hehe. Do u try to creat a online-rss-reader By Cake? Adrian Godong 写道: You're not alone. I'm looking at the same problem. I think it's because the wiki documentation is outdated. The sample from bitfolge.de (the creator of feedreader) mentioned something called saveRss function. Just tried, it works! Change the last line in your rss.thtml: $rss-outputFeed(); to $rss-saveFeed(); On 11/1/06, Eric [EMAIL PROTECTED] wrote: http://wiki.cakephp.org/tutorials:blog_tutorial_-_2 Adding an RSS feed using FeedCreator I follow the steps. There is an error message: Fatal error: Call to undefined method UniversalFeedCreator::outputFeed() in D:\Program Files\xampp\htdocs\cake\app\views\posts\rss.thtml on line 31 Why call to undefined method? Thanks! -- Adrian Godong [EMAIL PROTECTED] Microsoft Student Ambassador --=_Part_18193_23777478.1162519402942 Content-Type: text/html; charset=ISO-8859-1 X-Google-AttachSize: 1222 You're not alone. I'm looking at the same problem.brbrI think it's because the wiki documentation is outdated. The sample from a href=http://bitfolge.de;bitfolge.de/a (the creator of feedreader) mentioned something called saveRss function. brbrJust tried, it works! Change the last line in your rss.thtml:brbrnbsp;nbsp;nbsp; $rss-gt;outputFeed();brbrtobrbrnbsp;nbsp;nbsp; $rss-gt;saveFeed();brbrdivspan class=gmail_quoteOn 11/1/06, b class=gmail_sendername Eric/b lt;a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/agt; wrote:/spanblockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; bra href=http://wiki.cakephp.org/tutorials:blog_tutorial_-_2;http://wiki.cakephp.org/tutorials:blog_tutorial_-_2/abrbrAdding an RSS feed using FeedCreatorbrbrI follow the steps.brThere is an error message: brbrFatal error: Call to undefined methodbrUniversalFeedCreator::outputFeed() in D:\ProgrambrFiles\xampp\htdocs\cake\app\views\posts\rss.thtml on line 31brbrWhy call to undefined method?brbrThanks!brbr br/abrbrMicrosoft Student Ambassador --=_Part_18193_23777478.1162519402942-- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
Can baker help me ? I saw the API for Cake 1.2. It contains helper for RSS and XML. Is it the solution for this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: ERROR_Adding an RSS feed using FeedCreator
You're not alone. I'm looking at the same problem.I think it's because the wiki documentation is outdated. The sample from bitfolge.de (the creator of feedreader) mentioned something called saveRss function. Just tried, it works! Change the last line in your rss.thtml: $rss-outputFeed();to $rss-saveFeed();On 11/1/06, Eric [EMAIL PROTECTED] wrote: http://wiki.cakephp.org/tutorials:blog_tutorial_-_2Adding an RSS feed using FeedCreatorI follow the steps.There is an error message: Fatal error: Call to undefined methodUniversalFeedCreator::outputFeed() in D:\ProgramFiles\xampp\htdocs\cake\app\views\posts\rss.thtml on line 31Why call to undefined method?Thanks! Microsoft Student Ambassador --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---