@@ 23-35 (lines=13) @@ | ||
20 | * |
|
21 | * @return void |
|
22 | */ |
|
23 | public function getIndex() |
|
24 | { |
|
25 | $question = new Question($this->di->get("db")); |
|
26 | ||
27 | $views = [ |
|
28 | ["comment/question/view-all", ["questions" => $question->getQuestions()], "main"] |
|
29 | ]; |
|
30 | ||
31 | $this->di->get("pageRenderComment")->renderPage([ |
|
32 | "views" => $views, |
|
33 | "title" => "All questions" |
|
34 | ]); |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * View specific question and create answer form |
@@ 22-35 (lines=14) @@ | ||
19 | * |
|
20 | * @return void |
|
21 | */ |
|
22 | public function getAllUsersIndex() |
|
23 | { |
|
24 | $user = new User($this->di->get("db")); |
|
25 | $users = $user->getAllUsers(); |
|
26 | ||
27 | $views = [ |
|
28 | ["comment/users/view-all", ["users" => $users], "main"] |
|
29 | ]; |
|
30 | ||
31 | $this->di->get("pageRenderComment")->renderPage([ |
|
32 | "views" => $views, |
|
33 | "title" => "Coffee users" |
|
34 | ]); |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Create page for all users overview |