public function executePopular() { // questions $questions = QuestionPeer::getPopular(sfConfig::get('app_feed_max_questions')); $feed = sfFeed::newInstance('rss201rev2'); // channel $feed->setTitle('Popular questions on askeet'); $feed->setLink('@homepage'); $feed->setFeedUrl('feed/popular'); $feed->setDescription('A list of the most popular questions asked on the askeet site, rated by the community.'); // items $feed->setFeedItemsRouteName('@question'); $feed->setItems($questions); $this->feed = $feed; }