Example #1
0
 function run()
 {
     foreach ($_SESSION['perpage'] as $key => $item) {
         if (in_array($key, Funcs::$uri)) {
             $path = $key;
         }
     }
     $items = PaginationWidget::getPage($_SESSION['perpage'][$path], PaginationWidget::$count);
     View::widget('pagination', array('pagination' => $items));
 }
Example #2
0
 function run()
 {
     $items = PaginationWidget::getPage($_SESSION['user']['perpage'], PaginationWidget::$count);
     View::widget('pagination', array('pagination' => $items));
 }