1 | <?php |
||
16 | class AdController extends Controller |
||
17 | { |
||
18 | /** |
||
19 | * @inheritdoc |
||
20 | */ |
||
21 | public function behaviors() |
||
32 | |||
33 | /** |
||
34 | * Lists all Ad models. |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function actionIndex() |
||
54 | |||
55 | /** |
||
56 | * Displays a single Ad model. |
||
57 | * @param integer $id |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function actionView($id) |
||
66 | |||
67 | /** |
||
68 | * Creates a new Ad model. |
||
69 | * If creation is successful, the browser will be redirected to the 'view' page. |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function actionCreate() |
||
88 | |||
89 | /** |
||
90 | * Updates an existing Ad model. |
||
91 | * If update is successful, the browser will be redirected to the 'view' page. |
||
92 | * @param integer $id |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public function actionUpdate($id) |
||
107 | |||
108 | /** |
||
109 | * Deletes an existing Ad model. |
||
110 | * If deletion is successful, the browser will be redirected to the 'index' page. |
||
111 | * @param integer $id |
||
112 | * @return mixed |
||
113 | */ |
||
114 | public function actionDelete($id) |
||
120 | |||
121 | /** |
||
122 | * Finds the Ad model based on its primary key value. |
||
123 | * If the model is not found, a 404 HTTP exception will be thrown. |
||
124 | * @param integer $id |
||
125 | * @return Ad the loaded model |
||
126 | * @throws NotFoundHttpException if the model cannot be found |
||
127 | */ |
||
128 | protected function findModel($id) |
||
136 | } |
||
137 |