You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get any of the examples as written to work. They all seem to be missing instructions. For example, simple initializing has a javascript section but what file does that code go into?
When I try this:
<?php
namespace App\Controllers;
use \Hermawan\DataTables\DataTable;
class Test extends BaseController
{
public function index()
{
$db = $this->db;
$builder = $db->table('mytable')->select('id, title');
return DataTable::of($builder)->toJson();
}
}
I get the following error:
{
"error": "no datatable request detected"
}
The text was updated successfully, but these errors were encountered:
I can't get any of the examples as written to work. They all seem to be missing instructions. For example, simple initializing has a javascript section but what file does that code go into?
When I try this:
I get the following error:
The text was updated successfully, but these errors were encountered: