public function output(Pagemill_Data $data, Pagemill_Stream $stream) { $data = $data->fork(); $comments = new Model_Comment(); if (defined('COMMENTS_REQUIRE_APPROVAL') && 1 == COMMENTS_REQUIRE_APPROVAL) { $comments->select()->where('approved = 1'); } $comments->order('datecreated DESC'); $comments->limit(10); $data->set('comments', $comments); parent::output($data, $stream); }