user pagination

This commit is contained in:
2024-07-30 15:49:07 +03:00
parent 9fb72b7840
commit 0459ed561c
3 changed files with 10 additions and 5 deletions

View File

@ -12,6 +12,7 @@ use app\tables\columns\UserEditActionColumn;
use app\tables\columns\UserViewActionColumn;
use Exception;
use http\Message;
use Illuminate\Support\Facades\DB;
use Itguild\Tables\ListJsonTable;
use Itguild\Tables\ViewJsonTable;
use JetBrains\PhpStorm\NoReturn;
@ -59,11 +60,11 @@ class UserController extends Controller{
/**
* @throws \Exception
*/
public function actionIndex(): void
public function actionIndex($page_id = 1): void
{
$users = User::all();
$this->cgView->render("user/index.php", ['users' => $users]);
$this->cgView->render("user/index.php", ['users' => $users, 'page_id' => $page_id]);
}
/**