1 | <?php |
||
12 | class DefaultController extends Controller |
||
13 | { |
||
14 | public function behaviors() |
||
25 | |||
26 | /** |
||
27 | * Lists all Lookup models. |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function actionIndex() |
||
40 | |||
41 | /** |
||
42 | * Displays a single Lookup model. |
||
43 | * @param integer $id |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function actionView($id) |
||
52 | |||
53 | /** |
||
54 | * Creates a new Lookup model. |
||
55 | * If creation is successful, the browser will be redirected to the 'view' page. |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function actionCreate() |
||
68 | |||
69 | /** |
||
70 | * Updates an existing Lookup model. |
||
71 | * If update is successful, the browser will be redirected to the 'view' page. |
||
72 | * @param integer $id |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function actionUpdate($id) |
||
85 | |||
86 | /** |
||
87 | * Deletes an existing Lookup model. |
||
88 | * If deletion is successful, the browser will be redirected to the 'index' page. |
||
89 | * @param integer $id |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function actionDelete($id) |
||
98 | |||
99 | /** |
||
100 | * Finds the Lookup model based on its primary key value. |
||
101 | * If the model is not found, a 404 HTTP exception will be thrown. |
||
102 | * @param integer $id |
||
103 | * @return Lookup the loaded model |
||
104 | * @throws NotFoundHttpException if the model cannot be found |
||
105 | */ |
||
106 | protected function findModel($id) |
||
113 | } |
||
114 |