1 | <?php |
||
18 | class Controller |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var Container |
||
23 | */ |
||
24 | protected $container; |
||
25 | |||
26 | /** |
||
27 | * @var Request |
||
28 | */ |
||
29 | protected $request; |
||
30 | |||
31 | /** |
||
32 | * @var Response |
||
33 | */ |
||
34 | protected $response; |
||
35 | |||
36 | 5 | public function __construct(Container $container) |
|
40 | |||
41 | 2 | public function __get($property) |
|
49 | |||
50 | 3 | public function __call($name, $arguments) |
|
60 | |||
61 | /** |
||
62 | * Shorthand method for render templates |
||
63 | * |
||
64 | * @link http://www.slimframework.com/docs/features/templates.html |
||
65 | * |
||
66 | * @param string $template Template pathname relative to templates directory |
||
67 | * @param array $data Associative array of template variables |
||
68 | * |
||
69 | * @return mixed |
||
70 | */ |
||
71 | 1 | public function render($template, $data = []) |
|
75 | } |
||
76 |