39 lines
835 B
PHP
39 lines
835 B
PHP
|
<?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);
|
||
|
});
|
||
|
}
|
||
|
}
|