Rebuilding with CodeIgniter 4
This commit is contained in:
parent
e6dcc92267
commit
3bce4ad0ac
92 changed files with 7304 additions and 380 deletions
26
app/Views/blog/overview.php
Normal file
26
app/Views/blog/overview.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<main role="main">
|
||||
<div class="container">
|
||||
<h1 class="mt-5"><?= esc($title); ?></h1>
|
||||
|
||||
<?php if (! empty($blog) && is_array($blog)) : ?>
|
||||
|
||||
<?php foreach ($blog as $blog_item): ?>
|
||||
|
||||
<h3><?= esc($blog_item['title']); ?></h3>
|
||||
|
||||
<div class="main">
|
||||
<?= esc($blog_item['body']); ?>
|
||||
</div>
|
||||
<p><a href="/blog/<?= esc($blog_item['slug'], 'url'); ?>">View article</a></p>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<h3>No News</h3>
|
||||
|
||||
<p>Unable to find any news for you.</p>
|
||||
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</main>
|
6
app/Views/blog/view.php
Normal file
6
app/Views/blog/view.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<main role="main">
|
||||
<div class="container">
|
||||
<h1 class="mt-5"><?= esc($blog['title']); ?></h1>
|
||||
<?= esc($blog['body']); ?>
|
||||
</div>
|
||||
</main>
|
Reference in a new issue