@@ 33-48 (lines=16) @@ | ||
30 | * |
|
31 | * @return void |
|
32 | */ |
|
33 | public function getPostRegister() |
|
34 | { |
|
35 | $title = "Sign up"; |
|
36 | $view = $this->di->get("view"); |
|
37 | $pageRender = $this->di->get("pageRender"); |
|
38 | $form = new RegisterForm($this->di); |
|
39 | ||
40 | $form->check(); |
|
41 | ||
42 | $data = [ |
|
43 | "form" => $form->getHTML(["use_buttonbar" => false]), |
|
44 | "title" => $title, |
|
45 | ]; |
|
46 | $view->add("user/user-register", $data); |
|
47 | $pageRender->renderPage(["title" => $title]); |
|
48 | } |
|
49 | ||
50 | ||
51 | ||
@@ 57-71 (lines=15) @@ | ||
54 | * |
|
55 | * @return void |
|
56 | */ |
|
57 | public function getPostLogin() |
|
58 | { |
|
59 | $title = "Sign in"; |
|
60 | $view = $this->di->get("view"); |
|
61 | $pageRender = $this->di->get("pageRender"); |
|
62 | $form = new LoginForm($this->di); |
|
63 | ||
64 | $form->check(); |
|
65 | ||
66 | $data = [ |
|
67 | "form" => $form->getHTML(["use_fieldset" => false, "use_buttonbar" => false]), |
|
68 | ]; |
|
69 | $view->add("user/user-login", $data); |
|
70 | $pageRender->renderPage(["title" => $title]); |
|
71 | } |
|
72 | ||
73 | ||
74 |