コード例 #1
0
 /**
  * Show payments history
  *
  * @param void
  * @return null
  */
 function index()
 {
     $per_page = 50;
     $page = (int) $this->request->get('page');
     if ($page < 1) {
         $page = 1;
     }
     // if
     list($payments, $pagination) = InvoicePayments::paginateAll($page, $per_page);
     $this->smarty->assign(array('payments' => group_by_month($payments, 'getPaidOn'), 'pagination' => $pagination));
 }