| @@ 136-151 (lines=16) @@ | ||
| 133 | * Display the currently outstanding orders for the current user |
|
| 134 | * |
|
| 135 | */ |
|
| 136 | public function index() |
|
| 137 | { |
|
| 138 | $member = Member::currentUser(); |
|
| 139 | ||
| 140 | $this->customise(array( |
|
| 141 | "ClassName" => "AccountPage" |
|
| 142 | )); |
|
| 143 | ||
| 144 | $this->extend("onBeforeIndex"); |
|
| 145 | ||
| 146 | return $this->renderWith(array( |
|
| 147 | "UserAccount", |
|
| 148 | "UserAccount", |
|
| 149 | "Page" |
|
| 150 | )); |
|
| 151 | } |
|
| 152 | ||
| 153 | public function edit() |
|
| 154 | { |
|
| @@ 153-169 (lines=17) @@ | ||
| 150 | )); |
|
| 151 | } |
|
| 152 | ||
| 153 | public function edit() |
|
| 154 | { |
|
| 155 | $member = Member::currentUser(); |
|
| 156 | ||
| 157 | $this->customise(array( |
|
| 158 | "ClassName" => "AccountPage", |
|
| 159 | "Form" => $this->EditAccountForm()->loadDataFrom($member) |
|
| 160 | )); |
|
| 161 | ||
| 162 | $this->extend("onBeforeEdit"); |
|
| 163 | ||
| 164 | return $this->renderWith(array( |
|
| 165 | "UserAccount_edit", |
|
| 166 | "UserAccount", |
|
| 167 | "Page" |
|
| 168 | )); |
|
| 169 | } |
|
| 170 | ||
| 171 | public function changepassword() |
|
| 172 | { |
|