Part on Useful names and conventions finished
This commit is contained in:
parent
20aee0812f
commit
d907e90218
7 changed files with 18 additions and 18 deletions
20
views/notes/index.view.php
Normal file
20
views/notes/index.view.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php require ('views/partials/head.php') ?>
|
||||
<?php require ('views/partials/nav.php') ?>
|
||||
<?php require ('views/partials/banner.php') ?>
|
||||
<main>
|
||||
<div class="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">
|
||||
<ul>
|
||||
<?php foreach ($notes as $note) : ?>
|
||||
<li>
|
||||
<a href="/note?id=<?= $note['id'] ?>" class="text-blue-500 hover:underline">
|
||||
<?= htmlspecialchars($note['body']) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<p class="mt-6">
|
||||
<a href="/notes/create" class="text-blue-500 hover:underline">Create Note</a>
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
<?php require ('views/partials/footer.php') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue