Skip to content

Commit 2f2ee08

Browse files
Added more code because that's what I do.
1 parent b3641a1 commit 2f2ee08

File tree

5 files changed

+35
-8
lines changed

5 files changed

+35
-8
lines changed

public_html/app/controller/common/home.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function index ()
2020
{
2121
$data['header'] = $this->load->controller('common/header');
2222
$data['content_top'] = $this->load->controller('common/content_top');
23+
$data['footer'] = $this->load->controller('common/footer');
2324

2425
$this->response->setOutput($this->load->view('common/home', $data));
2526
}

public_html/app/view/common/home.twig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,4 @@
8181
</section>
8282
</main>
8383

84-
<!-- Footer -->
85-
<footer class="footer">
86-
<div class="container">
87-
<p>© 2025 Spindle CMS. Visit <a href="https://spindle.website" target="_blank" rel="noopener noreferrer">spindle.website</a>
88-
for more information.</p>
89-
</div>
90-
</footer>
91-
</body>
84+
{{ footer }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/*
3+
* Spindle CMS
4+
* Copyright (c) 2025. All rights reserved.
5+
*
6+
* This file is part of the Spindle CMS project — a lightweight, modular PHP content framework derived from OpenCart.
7+
*
8+
* @license GNU General Public License v3.0 (GPL-3.0-or-later)
9+
* @link https://github.com/RandomCoderTinker/Spindle
10+
*/
11+
12+
namespace Spindle\Shared\Controller\Common;
13+
14+
use Spindle\System\Engine\Controller;
15+
16+
class Footer extends Controller
17+
{
18+
19+
public function index (): string
20+
{
21+
// return the view
22+
return $this->load->view('shared/common/footer');
23+
}
24+
25+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- Footer -->
2+
<footer class="footer">
3+
<div class="container">
4+
<p>© 2025 Spindle CMS.</p>
5+
</div>
6+
</footer>
7+
</body>

public_html/subDomains/docs/controller/common/home.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function index ()
2323

2424
$data['header'] = $this->load->controller('common/header');
2525
$data['content_top'] = $this->load->controller('common/content_top');
26+
$data['footer'] = $this->load->controller('common/footer');
2627

2728
$this->response->setOutput($this->load->view('common/home', $data));
2829
}

0 commit comments

Comments
 (0)