user pagination
This commit is contained in:
@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user