@@ -3,12 +3,12 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class Grid 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("/controller"); |
| 11 | - $view = 'pages/grid.html'; |
|
| 11 | + $view = 'pages/grid.html'; |
|
| 12 | 12 | |
| 13 | 13 | // Get erdiko config, this gets application.json and loads the theme specified |
| 14 | 14 | $config = \erdiko\theme\Config::get(); |
@@ -31,6 +31,6 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | $config['items'] = $items; |
| 33 | 33 | |
| 34 | - return $this->container->theme->render($response, $view, $config); |
|
| 35 | - } |
|
| 34 | + return $this->container->theme->render($response, $view, $config); |
|
| 35 | + } |
|
| 36 | 36 | } |
| 37 | 37 | \ No newline at end of file |
@@ -3,12 +3,12 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | class Home 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("/controller"); |
| 11 | - $view = 'views/controller.html'; |
|
| 11 | + $view = 'views/controller.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 | $config['title'] = "Erdiko Controller Example"; |
| 19 | 19 | $config['args'] = $args; |
| 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 |