Explorar el Código

navbar

master
Ruben De Baets hace 2 años
padre
commit
9ba0120d28
Se han modificado 2 ficheros con 10 adiciones y 2 borrados
  1. 4
    1
      composer.json
  2. 6
    1
      public/index.php

+ 4
- 1
composer.json Ver fichero

@@ -2,5 +2,8 @@
"require": {
"slim/slim": "4.*",
"slim/psr7": "^1.5"
},
"config": {
"platform-check": false
}
}
}

+ 6
- 1
public/index.php Ver fichero

@@ -9,7 +9,12 @@ require __DIR__ . '/../vendor/autoload.php';
$app = AppFactory::create();

$app->get('/', function (Request $request, Response $response, $args) {
$response->getBody()->write("Hello world!");
$response->getBody()->write("<h1>Hello world!</h1>");
$response->getBody()->write("<ul>");
$response->getBody()->write('<li><a href="">Eerste</a></li>');
$response->getBody()->write('<li><a href="">Tweede</a></li>');
$response->getBody()->write('<li><a href="">derde</a></li>');
$response->getBody()->write("</ul>");
return $response;
});


Cargando…
Cancelar
Guardar