File tree Expand file tree Collapse file tree 5 files changed +35
-8
lines changed
subDomains/docs/controller/common Expand file tree Collapse file tree 5 files changed +35
-8
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ <!-- Footer -->
2+ <footer class =" footer" >
3+ <div class =" container" >
4+ <p >© 2025 Spindle CMS.</p >
5+ </div >
6+ </footer >
7+ </body >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments