@@ 64-81 (lines=18) @@ | ||
61 | * |
|
62 | * @return void |
|
63 | */ |
|
64 | public function getPostEditUser() |
|
65 | { |
|
66 | $this->checkIsLogin(); |
|
67 | $name = $this->di->get('session')->get("user"); |
|
68 | $user = $this->getUserDetails($name); |
|
69 | ||
70 | $form = new EditProfileForm($this->di, $name); |
|
71 | $form->check(); |
|
72 | ||
73 | $views = [ |
|
74 | ["comment/user/profile/edit", ["form" => $form->getHTML(), "user" => $user], "main"] |
|
75 | ]; |
|
76 | ||
77 | $this->di->get("pageRenderComment")->renderPage([ |
|
78 | "views" => $views, |
|
79 | "title" => "Edit Profile" |
|
80 | ]); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * Description. |
|
@@ 89-105 (lines=17) @@ | ||
86 | * |
|
87 | * @return void |
|
88 | */ |
|
89 | public function getPostEditSecurity() |
|
90 | { |
|
91 | $name = $this->di->get('session')->get("user"); |
|
92 | $user = $this->getUserDetails($name); |
|
93 | ||
94 | $form = new UpdateProfileSecurityForm($this->di); |
|
95 | $form->check(); |
|
96 | ||
97 | $views = [ |
|
98 | ["comment/user/profile/edit", ["form" => $form->getHTML(), "user" => $user], "main"] |
|
99 | ]; |
|
100 | ||
101 | $this->di->get("pageRenderComment")->renderPage([ |
|
102 | "views" => $views, |
|
103 | "title" => "Edit Profile" |
|
104 | ]); |
|
105 | } |
|
106 | } |
|
107 |