This commit is contained in:
Kavalar 2025-01-27 11:57:28 +03:00
parent 79ed17baa4
commit b08aaec81d
2 changed files with 2 additions and 2 deletions

View File

@ -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"],

View File

@ -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"],