Raw Query Pagination |
10-30-2021, 02:45 AM
(This post was last modified: 10-30-2021, 02:46 AM by captain-sensible. Edit Reason: added something i forgot )
whats the advantage of that when you are using "*" which gets all.
in a model you define fields: Code: class BlogModel extends Model via a Controller you can get a handle to Model eg Code: $handle = new BlogModel(); Code: foreach($blogs as $blogy) the main point being you can get access to all field in the table. So basically (i think) 'blogs' => $handle->paginate(5) is saying blogs is an object which contains data in all fields that were listed in my model i.e "*" and that blogs is passed to view bundled in $data |
Messages In This Thread |
Raw Query Pagination - by Capah.maga - 10-29-2021, 01:25 AM
RE: Raw Query Pagination - by captain-sensible - 10-30-2021, 02:45 AM
RE: Raw Query Pagination - by Capah.maga - 11-01-2021, 08:19 AM
|