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)); }
function run() { $items = PaginationWidget::getPage($_SESSION['user']['perpage'], PaginationWidget::$count); View::widget('pagination', array('pagination' => $items)); }