paginate/pagination ERROR |
06-01-2021, 01:00 AM
(This post was last modified: 06-01-2021, 02:07 AM by John mark bartholomon.) PHP Code: How do you use paginate() in ci4 accompanied by query()
@includebeer has a whole tutorial on this, see part 4 for pagination.
How to build a basic web application with CodeIgniter 4 What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
$data['data'] = $advertisementModel->select('*')
->where(['name'=>'x'])) ->orderBy('id','desc) ->paginate(10, 'default', 1,0); $data['pager']= $advertisementModel->pager->getDetails()
Enlightenment Is Freedom
|
Welcome Guest, Not a member yet? Register Sign In |