Error: Call to undefined method CodeIgniter\Database\MySQLi\Result::paginate()
问题 Struggling to wrap my head around paginate in CI4. All examples in the user guide shows the ->paginate() method linked directly onto the $model variable (without arguments) in the Controller. I have all my queries in the Model, so I'm a bit confused if the paginate method goes onto the end of my query there, or where it's called in the Controller. I've tried both - neither work. Model: public function brand_name($brand_name_slug) { return $this ->db ->table('shop a') ->select() ->join('