added router->path
This commit is contained in:
parent
10d56751e4
commit
c05aee49d5
|
@ -7,7 +7,7 @@
|
|||
<th>First</th>
|
||||
<th>Last</th>
|
||||
<th>Is Admin</th>
|
||||
<th> </th>
|
||||
<th colspan="2"> </th>
|
||||
</tr>
|
||||
<?php foreach ($users as $userLine): ?>
|
||||
<tr>
|
||||
|
@ -22,11 +22,14 @@
|
|||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/admin/users/<?= $userLine->getNick(); ?>">edit</a>
|
||||
<a href="<?= $router->path('app_admin_users_edit', vars: ['nick' => $userLine->getNick()]); ?>">edit</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= $router->path('app_admin_users_delete', vars: ['nick' => $userLine->getNick()]); ?>">delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<a href="/admin/users/add">Add User</a>
|
||||
<a href="<?= $router->path('app_admin_users_add'); ?>">Add User</a>
|
||||
|
||||
<?php include dirname(path: __DIR__) . '/_footer.html.php' ?>
|
||||
|
|
Loading…
Reference in New Issue