public function executeRecent() { // questions $questions = QuestionPeer::getRecent(sfConfig::get('app_feed_max_questions')); $feed = sfFeed::newInstance('rss201rev2'); // channel $feed->setTitle('Recent questions on askeet'); $feed->setLink('@recent_questions'); $feed->setFeedUrl('@feed_recent_questions'); $feed->setDescription('A list of the most recent questions asked on the askeet site.'); // items $feed->setFeedItemsRouteName('@question'); $feed->setItems($questions); $this->feed = $feed; }