1
0

Applicatiebasis, incl. instructie

This commit is contained in:
2017-02-18 19:49:26 +01:00
parent 88a8546ef2
commit da5ecf6f86
8 changed files with 211 additions and 43 deletions

38
src/Application/Main.php Normal file
View File

@ -0,0 +1,38 @@
<?php
/**
* Informatica Eindproject D4p
* 6in3, Stedelijk Gymnasium Nijmegen
* Docent: Hans de Wolf
*
* ==================
*
* Daniel Boutros,
* Christiaan Goossens,
* Jelmer Hinssen
*/
namespace InfD4p\Application;
use \Slim\App;
class Main {
/**
* Constructor function
* @param App $app App Dependency Injection
*
* ==============
* INSTRUCTIEBLOK
* ==============
*
* Hier wordt onze applicatie gestart. De functie hieronder wordt aangeroepen bij het starten van de app. Hier kun je dus routes toevoegen.
*
*/
public function __construct(App $app) {
$app->get('/[{name}]', function ($request, $response, $args) {
// Render index view
return $this->renderer->render($response, 'index.phtml', $args);
});
}
}