Closed prajeesh-stratagile closed 1 year ago
hmm sorry late not maintenance this..
you just wrong how to use
$model = new UserModel();
$data = $model->where('Email', 'super@email.com');
you only need write like this without first() or findAll()
Describe the bug https://www.nicesnippets.com/blog/codeigniter-4-server-side-datatable-example-tutorial I was followed this tutorial in CodeIgniter 4.2.10, but getting the followed error.
Your code Please write the code that makes the bug appear (PHP and JS) `<?php namespace App\Controllers; use CodeIgniter\Controller; use Hermawan\DataTables\DataTable; use App\Models\UserModel;
class DatatableController extends Controller { public function __construct() { $db = db_connect(); $this->UserModel = new UserModel($db); }
} ?>`
Screenshots If applicable, add screenshots to help explain your problem.![image](https://user-images.githubusercontent.com/69136137/204232898-8214e22b-f6d7-42c5-96c9-b492c15e4ab7.png)
Version (please complete the following information):