@@ -3,12 +3,12 @@ discard block |
||
3 | 3 | |
4 | 4 | class Config extends \erdiko\Controller |
5 | 5 | { |
6 | - protected $container; |
|
6 | + protected $container; |
|
7 | 7 | |
8 | - public function __invoke($request, $response, $args) |
|
9 | - { |
|
8 | + public function __invoke($request, $response, $args) |
|
9 | + { |
|
10 | 10 | $this->container->logger->debug("route: /config"); |
11 | - $view = 'pages/config.html'; |
|
11 | + $view = 'pages/config.html'; |
|
12 | 12 | |
13 | 13 | // Get erdiko config, this gets application.json and loads the theme specified |
14 | 14 | $config = \erdiko\theme\Config::get(); |
@@ -18,6 +18,6 @@ discard block |
||
18 | 18 | // $theme->title = "Dump Config"; |
19 | 19 | // (array)$theme; Config::get(), ['page'] = array(); |
20 | 20 | |
21 | - return $this->container->theme->render($response, $view, $config); |
|
22 | - } |
|
21 | + return $this->container->theme->render($response, $view, $config); |
|
22 | + } |
|
23 | 23 | } |
24 | 24 | \ No newline at end of file |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // Application Routes |
3 | 3 | |
4 | -$app->get('/', function ($request, $response, $args) { |
|
4 | +$app->get('/', function($request, $response, $args) { |
|
5 | 5 | // Render index view |
6 | 6 | return $this->theme->render($response, 'slim.phtml', $args); |
7 | 7 | }); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | // ->setName('home'); |
12 | 12 | |
13 | 13 | // Render Twig template in route |
14 | -$app->any('/render/[{name}]', function ($request, $response, $args) { |
|
14 | +$app->any('/render/[{name}]', function($request, $response, $args) { |
|
15 | 15 | // Erdiko setup (load configs) |
16 | 16 | // $erdiko = \erdiko\App; |
17 | 17 | // $erdiko->load('application'); |