inital commit
[pharext/pharext.org] / app / Controller / Homepage.php
1 <?php
2
3 namespace app\Controller;
4
5 use app\Controller;
6
7 class Homepage implements Controller
8 {
9 private $app;
10
11 function __construct(\app\Web $app) {
12 $this->app = $app;
13 }
14
15 function __invoke(array $args = null) {
16 $this->app->getResponse()->getBody()->append(
17 $this->app->getView()->render("pages/index")
18 );
19 }
20 }