1 | <?php |
||
16 | class UserController extends Controller |
||
17 | { |
||
18 | /** |
||
19 | * Lists all User models. |
||
20 | * @return ActiveDataProvider |
||
21 | */ |
||
22 | public function actionIndex() |
||
28 | |||
29 | /** |
||
30 | * Displays a single User model. |
||
31 | * @param integer $id |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function actionView($id) |
||
38 | |||
39 | /** |
||
40 | * Creates a new User model. |
||
41 | * If creation is successful, the browser will be redirected to the 'view' page. |
||
42 | * @return User |
||
43 | */ |
||
44 | public function actionCreate() |
||
50 | |||
51 | /** |
||
52 | * Updates an existing User model. |
||
53 | * If update is successful, the browser will be redirected to the 'view' page. |
||
54 | * @param integer $id |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function actionUpdate($id) |
||
62 | |||
63 | /** |
||
64 | * Deletes an existing User model. |
||
65 | * If deletion is successful, the browser will be redirected to the 'index' page. |
||
66 | * @param integer $id |
||
67 | * @return mixed |
||
68 | */ |
||
69 | public function actionDelete($id) |
||
73 | |||
74 | /** |
||
75 | * Finds the User model based on its primary key value. |
||
76 | * If the model is not found, a 404 HTTP exception will be thrown. |
||
77 | * @param integer $id |
||
78 | * @return User the loaded model |
||
79 | * @throws NotFoundHttpException if the model cannot be found |
||
80 | */ |
||
81 | protected function findModel($id) |
||
89 | } |
||
90 |