GTD Tools - AllMyThingsTodo

March 20, 2008

CakePHP rss reader component installation

Filed under: cakephp — admin @ 1:23 pm

Hi all !

Today I’ve installed an RSS Reader Component in my cake application, so you can read the news at login time.

How ?

First, after searching cake community (bakery), I located this CakePHP RSS component

Following the instructions (very easy), you download the component into your vendors and components folder, then use it to get the feed, and display it as you like.

Tip: Cake has a funtion “truncate” inside the Text Helper to aid you if you like to get the first N characters for a headline or description of your feed.

Here is the code I’ve used

#CONTROLLER
var $helpers = array('Javascript','DAuth', 'Text');
var $components = array('DAuth','RequestHandler', 'Simplepie');
...... code ......
$items = $this->Simplepie->feed('http://blog.allmythingstodo.com/rss');
$this->set('feeds', $items);
#END OF CONTROLLER

#VIEW
<?php
foreach($feeds as $feed) {
  echo $html->link($feed->get_title(), $feed->get_permalink()) . '<br/>';
  echo $text->truncate($feed->get_description());
}
?>
#END OF VIEW

March 16, 2008

Hello !

Filed under: Uncategorized — admin @ 6:20 pm

Hello dear allmythingstodo user or casual reader.

My name is Mauro Cabestany and I’m working now for 3 months in this little project, which aims to be a complete GTD oriented Personal Management Tool, to assist you in your workload planning.

Please feel free to login at my GTD Tools - AllMyThingsToDo page and start using it for free.

By the way, don’t worry about your email, or use a junk email to register because we are not using any validation. If we need to contact you, we’ll use this blog to keep in touch with AMTTD users.

Remember, contribute with suggestions or comments. Positive and negative feedback is welcome.

Spammers, please don’t touch my blogs.

Powered by WordPress