Pagination don't work |
Hi all!
I'm trying to configure pagination for my project, I do everything according to the documentation, but I get an error. With version 3, there were no such problems (( PHP Code: lass User extends Controller{ Model: PHP Code: class UserModel extends Model Quote:Error
as it turned out, in the file \system\Model.php, line 442
$ this-> tempReturnType = $ this-> returnType; costs AFTER $ row = $ row-> getResult ($ this-> tempReturnType); I moved it before this expression and it worked.
Change your model like this:
Code: class UserModel extends Model
Your re-initializing the db and builder in your models constructor.
When you extend the Model you have access to $this->db and $this->builder. You need to read up on CodeIgniter Models in the Users Guide. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Simple things work better.
Less is more. Of course, simple sugestions. Model: PHP Code: <?php<?php Controller: PHP Code: <?php namespace App\Controllers; A portion of the View(pager) PHP Code: <div class="users-pages-index"> |
Welcome Guest, Not a member yet? Register Sign In |