2 files added
2 files modified
| | |
| | | |
| | | $router->add("/home/index", ["controller" => "home", "action" => "index"]); |
| | | $router->add("/products", ["controller" => "products", "action" => "index"]); |
| | | $router->add("/", ["controller" => "home", "action" => "index"]); |
| | | //$router->add("/", ["controller" => "home", "action" => "index"]); |
| | | $router->add("/{controller}/{action}"); |
| | | |
| | | return $router; |
New file |
| | |
| | | body { |
| | | margin: 0; |
| | | box-sizing: border-box; |
| | | font:caption; |
| | | } |
| | | |
| | | header { |
| | | background-color: red; |
| | | text-align: center; |
| | | padding: 10px; |
| | | } |
| | | |
| | | header a { |
| | | padding: 5px; |
| | | } |
| | | |
| | | main { |
| | | padding:50px; |
| | | padding-bottom: 20%; |
| | | } |
| | | |
| | | main h2 { |
| | | text-align: center; |
| | | } |
| | | |
| | | main img { |
| | | width: 20%; |
| | | float: left; |
| | | } |
| | | |
| | | main article { |
| | | width: 80%; |
| | | float: left; |
| | | } |
| | | |
| | | main input { |
| | | margin: 15px; |
| | | } |
| | | |
| | | footer { |
| | | background-color: red; |
| | | text-align: center; |
| | | padding: 15px; |
| | | } |
| | | |
| | | |
| | | |
| | | |
New file |
| | |
| | | {% extends "base.mvc.php" %} |
| | | |
| | | {% block title %} Home {% endblock %} |
| | | |
| | | {% block body %} |
| | | |
| | | {% include "../views/Fiat/header.mvc.php" %} |
| | | |
| | | <main> |
| | | <h2>Fiat Panda</h2> |
| | | <img src="files_comuni/images/panda.jpg"> |
| | | <article> |
| | | Lorem ipsum dolor sit amet consectetur adipisicing elit. Perspiciatis dicta fugiat molestiae ex, illo dolorem mollitia soluta molestias laborum rerum et voluptas facere sapiente animi neque dolorum rem. Quis, modi! |
| | | </article> |
| | | </main> |
| | | |
| | | {% include "../views/Fiat/footer.mvc.php" %} |
| | | |
| | | {% endblock %} |
| | |
| | | <meta charset="UTF-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <title>{% yield title %}</title> |
| | | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"> |
| | | <link rel="stylesheet" href="/style.css"> |
| | | </head> |
| | | |
| | | <body> |