| @@ 70-83 (lines=14) @@ | ||
| 67 | * |
|
| 68 | * @return void |
|
| 69 | */ |
|
| 70 | public function getPostLogin() |
|
| 71 | { |
|
| 72 | $form = new UserLoginForm($this->di); |
|
| 73 | $form->check(); |
|
| 74 | ||
| 75 | $views = [ |
|
| 76 | ["user/pre/login", ["form" => $form->getHTML()], "main"] |
|
| 77 | ]; |
|
| 78 | ||
| 79 | $this->di->get("pageRenderComment")->renderPage([ |
|
| 80 | "views" => $views, |
|
| 81 | "title" => "Login" |
|
| 82 | ]); |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Description. |
|
| @@ 90-103 (lines=14) @@ | ||
| 87 | * |
|
| 88 | * @return void |
|
| 89 | */ |
|
| 90 | public function getPostReset() |
|
| 91 | { |
|
| 92 | $form = new UserResetForm($this->di); |
|
| 93 | $form->check(); |
|
| 94 | ||
| 95 | $views = [ |
|
| 96 | ["user/pre/reset", ["form" => $form->getHTML()], "main"] |
|
| 97 | ]; |
|
| 98 | ||
| 99 | $this->di->get("pageRenderComment")->renderPage([ |
|
| 100 | "views" => $views, |
|
| 101 | "title" => "Reset password" |
|
| 102 | ]); |
|
| 103 | } |
|
| 104 | ||
| 105 | ||
| 106 | ||
| @@ 116-129 (lines=14) @@ | ||
| 113 | * |
|
| 114 | * @return void |
|
| 115 | */ |
|
| 116 | public function getPostCreateUser() |
|
| 117 | { |
|
| 118 | $form = new CreateUserForm($this->di); |
|
| 119 | $form->check(); |
|
| 120 | ||
| 121 | $views = [ |
|
| 122 | ["user/pre/create", ["form" => $form->getHTML()], "main"] |
|
| 123 | ]; |
|
| 124 | ||
| 125 | $this->di->get("pageRenderComment")->renderPage([ |
|
| 126 | "views" => $views, |
|
| 127 | "title" => "Create User" |
|
| 128 | ]); |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||
| @@ 22-35 (lines=14) @@ | ||
| 19 | * |
|
| 20 | * @return void |
|
| 21 | */ |
|
| 22 | public function getIndex() |
|
| 23 | { |
|
| 24 | $question = new Question($this->di); |
|
| 25 | $question->setDb($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 | * Show all items. |
|
| 38 | * |
|