public function executeShowByAmount($request) { $order = $this->getRequestParameter('order'); if (!$order) { $order = 'desc'; } $this->pager = ReportPeer::findByAmount($request->getParameter('page', 1), 10, $order); $this->setTemplate('list'); }