modules/user/controllers/ManagementController.php 1 location
|
@@ 103-110 (lines=8) @@
|
100 |
|
* @return User the loaded model |
101 |
|
* @throws NotFoundHttpException if the model cannot be found |
102 |
|
*/ |
103 |
|
protected function findModel($id) |
104 |
|
{ |
105 |
|
$model = User::findOne($id); |
106 |
|
if (null === $model) { |
107 |
|
throw new NotFoundHttpException('The requested page does not exist.'); |
108 |
|
} |
109 |
|
return $model; |
110 |
|
} |
111 |
|
} |
112 |
|
|
modules/user/controllers/DefaultController.php 1 location
|
@@ 91-98 (lines=8) @@
|
88 |
|
* @return User the loaded model |
89 |
|
* @throws NotFoundHttpException if the model cannot be found |
90 |
|
*/ |
91 |
|
protected function findModel($id) |
92 |
|
{ |
93 |
|
$model = User::findOne($id); |
94 |
|
if (null === $model) { |
95 |
|
throw new NotFoundHttpException('The requested page does not exist.'); |
96 |
|
} |
97 |
|
return $model; |
98 |
|
} |
99 |
|
|
100 |
|
/** |
101 |
|
* Sends link for changing password on user email |