order by
This commit is contained in:
parent
79ed17baa4
commit
b08aaec81d
@ -21,7 +21,7 @@ $view->setMeta([
|
||||
]);
|
||||
|
||||
//Для использования таблицы с моделью, необходимо создать таблицу в базе данных
|
||||
$table = new ListEloquentTable(new EloquentDataProvider(Card::class, [
|
||||
$table = new ListEloquentTable(new EloquentDataProvider(Card::query()->orderBy("id", "DESC"), [
|
||||
'currentPage' => $page_number,
|
||||
'perPage' => 8,
|
||||
'params' => ["class" => "table table-bordered", "border" => "2"],
|
||||
|
@ -15,7 +15,7 @@ use kernel\modules\menu\table\columns\MenuViewActionColumn;
|
||||
|
||||
$view->setTitle("Список существующих диалогов");
|
||||
|
||||
$table = new ListEloquentTable(new EloquentDataProvider(\app\modules\tgbot\models\Tgbot::class, [
|
||||
$table = new ListEloquentTable(new EloquentDataProvider(\kernel\app_modules\tgbot\models\Tgbot::query()->orderBy("id", "DESC"), [
|
||||
'currentPage' => $page_number,
|
||||
'perPage' => 8,
|
||||
'params' => ["class" => "table table-bordered", "border" => "2"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user