added router->path

This commit is contained in:
tracer 2022-10-24 18:44:18 +02:00
parent 10d56751e4
commit c05aee49d5

View File

@ -7,7 +7,7 @@
<th>First</th>
<th>Last</th>
<th>Is Admin</th>
<th>&nbsp;</th>
<th colspan="2">&nbsp;</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' ?>