Add pagination for users page
This commit is contained in:
17
scripts/create-random-users.php
Executable file
17
scripts/create-random-users.php
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require __DIR__.'/../app/common.php';
|
||||
|
||||
use Model\User;
|
||||
|
||||
$userModel = new User($registry);
|
||||
|
||||
for ($i = 0; $i < 500; $i++) {
|
||||
$userModel->create(array(
|
||||
'username' => 'user'.$i,
|
||||
'password' => 'password'.$i,
|
||||
'name' => 'User #'.$i,
|
||||
'email' => 'user'.$i.'@localhost',
|
||||
));
|
||||
}
|
||||
Reference in New Issue
Block a user