|
@@ 6-18 (lines=13) @@
|
| 3 |
|
|
| 4 |
|
class Examples extends \erdiko\controllers\Web |
| 5 |
|
{ |
| 6 |
|
public function get($request, $response, $args) |
| 7 |
|
{ |
| 8 |
|
$view = 'examples/list.html'; |
| 9 |
|
|
| 10 |
|
// Get erdiko config, this gets application.json and loads the theme specified |
| 11 |
|
$themeData = \erdiko\theme\Config::get(); |
| 12 |
|
$themeData['args'] = $args; // optional |
| 13 |
|
$themeData['page'] = [ |
| 14 |
|
'title' => "Erdiko Web Example" |
| 15 |
|
]; |
| 16 |
|
|
| 17 |
|
return $this->container->theme->render($response, $view, $themeData); |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
public function getJohn($request, $response, $args) |
| 21 |
|
{ |
|
@@ 20-32 (lines=13) @@
|
| 17 |
|
return $this->container->theme->render($response, $view, $themeData); |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
public function getJohn($request, $response, $args) |
| 21 |
|
{ |
| 22 |
|
$view = 'pages/example.html'; |
| 23 |
|
|
| 24 |
|
// Get erdiko config, this gets application.json and loads the theme specified |
| 25 |
|
$themeData = \erdiko\theme\Config::get(); |
| 26 |
|
$themeData['args'] = $args; // optional |
| 27 |
|
$themeData['page'] = [ |
| 28 |
|
'title' => "Erdiko Web Example" |
| 29 |
|
]; |
| 30 |
|
|
| 31 |
|
return $this->container->theme->render($response, $view, $themeData); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function getMarkup($request, $response, $args) |
| 35 |
|
{ |
|
@@ 34-46 (lines=13) @@
|
| 31 |
|
return $this->container->theme->render($response, $view, $themeData); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
public function getMarkup($request, $response, $args) |
| 35 |
|
{ |
| 36 |
|
$view = 'examples/markup.html'; |
| 37 |
|
|
| 38 |
|
// Get erdiko config, this gets application.json and loads the theme specified |
| 39 |
|
$themeData = \erdiko\theme\Config::get(); |
| 40 |
|
$themeData['args'] = $args; // optional |
| 41 |
|
$themeData['page'] = [ |
| 42 |
|
'title' => "Markup Example" |
| 43 |
|
]; |
| 44 |
|
|
| 45 |
|
return $this->container->theme->render($response, $view, $themeData); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function getFlash($request, $response, $args) |
| 49 |
|
{ |