1 files deleted
4 files added
1 files modified
| | |
| | | <?php |
| | | namespace App\Controllers; |
| | | use Framework\Controller; |
| | | class Home extends Controller { |
| | | class Fiat extends Controller { |
| | | public function index() { |
| | | |
| | | echo $this->viewer->render("shared/header.php"); |
| | | |
| | | echo $this->viewer->render("Home/index.php"); |
| | | return $this->view("Fiat/index.mvc.php", [ |
| | | ]); |
| | | } |
| | | } |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="UTF-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <title>Home</title> |
| | | <link rel="stylesheet" href="files_comuni/style/style.css"> |
| | | </head> |
| | | <body> |
| | | {% yield body %} |
| | | </body> |
| | | </html> |
New file |
| | |
| | | <footer> |
| | | <hr> |
| | | author: me |
| | | copyright |
| | | </footer> |
New file |
| | |
| | | <header> |
| | | <h1>TEST HEADER</h1> |
| | | <a href="/fiat/index">Home</a> |
| | | <a href="/fiat/panda">FiatPanda</a> |
| | | <a href="/fiat/500">500</a> |
| | | <a href="/fiat/tipo">FiatTipo</a> |
| | | <a href="/fiat/contact">Contact Us</a> |
| | | </header> |
New file |
| | |
| | | {% extends "base.mvc.php" %} |
| | | |
| | | {% block title %} Home {% endblock %} |
| | | |
| | | {% block body %} |
| | | |
| | | {% include "../views/Fiat/header.mvc.php" %} |
| | | <h1>Scegli l'automobile piĆ¹ adatta a te!</h1> |
| | | {% include "../views/Fiat/footer.mvc.php" %} |
| | | |
| | | {% endblock %} |