fixed a bug while generating the addAddress route.

This commit is contained in:
tracer 2022-10-26 11:11:58 +02:00
parent 32133a0d05
commit e2da6000b3
1 changed files with 3 additions and 3 deletions

View File

@ -44,10 +44,10 @@
</table> </table>
</form> </form>
<!-- TODO why is the route not found? $addPath = $router->path('/address/add'); --> <?php $addAddress = $router->path('address_add'); ?>
<input type="button" value="Add Address" onclick="addAddress('address/add')"> <input type="button" value="Add Address" onclick="addAddress('<?= $addAddress ?>')">
<?php else: ?> <?php else: ?>
Your addresses wil be listed soon Your addresses will be listed soon
<?php endif; ?> <?php endif; ?>