Simple pagination
Last updated 2 years ago
In controllers:
public function index() { $pageTitle = "Users"; $users = DB()->selectLoop("*", "tbl_users", "user_id > 0") ->paginate(20) ->get(); return view('/user/index', compact('pageTitle', 'users')); }
In views: note: put this where you want the pagination links will display.
<?= DB()->links(); ?>