diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 15:44:38 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 15:44:38 -0400 |
commit | 45b5e8b879c1135398790cf988434188aa062cd4 (patch) | |
tree | 61b4db2e7bda95141a17b9f86f414a46aed24fde /scripts | |
parent | 471736bf8c9304606f183cd6b688b1fae64eea70 (diff) |
Add pagination for users page
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-random-users.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/create-random-users.php b/scripts/create-random-users.php new file mode 100755 index 00000000..47336c64 --- /dev/null +++ b/scripts/create-random-users.php @@ -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', + )); +} |