Welcome Guest, Not a member yet? Register   Sign In
Pagination
#1

(This post was last modified: 05-17-2021, 11:49 PM by riqekaqo.)

From past few days I have started working in CI4, I would like to know how pagination works with below query?

1. $query = $this->db->query("select * from users");
$result =  $query->getResultArray();

Using model is working as expected find below query
2. $data = [
            'users' => $this->users->where('active', '1')->paginate(4),
            'pager' => $this->users->pager
        ];

But facing issue with above 1st query result set. Could you please help me out to resolve this issue

Thank you in advance.

I'm a fan of gay porn and this is my favorite site
https://gotgaytubeporn.com/
Reply


Messages In This Thread
Pagination - by riqekaqo - 02-03-2021, 02:49 AM
RE: Pagination - by AndreaL - 02-09-2021, 07:53 AM
RE: Pagination - by christiand - 02-10-2021, 08:32 AM
RE: Pagination - by wdeda - 02-09-2021, 01:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB