title: Argument 1 passed to CodeIgniter\Database\BaseResult::getResult()
body: <blockquote>
  <p>Argument 1 passed to CodeIgniter\Database\BaseResult::getResult()</p>
  </blockquote>
  <p>the following is the code for my controller and model</p>
  <blockquote>
  <p><strong>the contollers section</strong></p>
  </blockquote>
  <pre><code>namespace Modules\FrontEndBlog\Controllers;
  
  use App\Controllers\BaseController;
  use Modules\FrontEndBlog\Models\ModelBlog as ModelBlog;
  use CodeIgniter\I18n\Time;
  
  class Blog extends BaseController
  {   
      protected $session;
      protected $ModelBlog;
  
      public function __construct(){
          $this-&gt;session = service('session');
  
          $this-&gt;ModelBlog = new ModelBlog();
  
      }
  
      public function index()
      {
          $pager = \Config\Services::pager();
  
          $blog = $this-&gt;ModelBlog-&gt;get_blog(1);
          dd($blog);
          $data = [
              'breadcrumbs' =&gt; 'Blog List',
              'blog' =&gt; $blog,
              'pager' =&gt; $this-&gt;ModelBlog-&gt;pager,
          ];
  
          return view('Modules\FrontEndBlog\Views\blog',$data);
      }
  
  
  }
  </code></pre>
  <blockquote>
  <p><strong>the models section</strong></p>
  </blockquote>
  <pre><code>namespace Modules\FrontEndBlog\Models;
  
  use CodeIgniter\Model;
   
  class ModelBlog extends Model
  {
      protected $table = 'blog';
      protected $useTimestamps = 'true';
  
      protected $db;
  
      public function __construct(){
          
          $this-&gt;db = \Config\Database::connect();
  
      }
  
      public function get_blog($blog_page){
  
          return $this
          -&gt;table('blog')
          -&gt;select('blog.created_at as tgl_post, blog.random as random_blog, nama_kategori, nama_tags, nama_blog, fullname,content_blog,slug_blog, thumbnail')
          -&gt;join('kategori_blog', 'kategori_blog.id=blog.id_kategori', 'left')
          -&gt;join('tags_blog', 'tags_blog.id=blog.id_tags', 'left')
          -&gt;join('users', 'users.id=blog.id_user', 'left')
          -&gt;paginate($blog_page);
          
  
      }
  
  }
  </code></pre>
  <blockquote>
  <p>how to make pagination codeigniter 4, but model with class method. I
  tried but failed, I need a solution to this?</p>
  </blockquote>