Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function run($id) |
||
23 | { |
||
24 | $model = $this->controller->findModel($id, $this->controller->viewClass); |
||
25 | |||
26 | if ($this->updateIfPost && Yii::$app->request->isPost) { |
||
27 | return $this->controller->runAction($this->updateAction, [$this->primaryKeyParam => $id]); |
||
28 | } |
||
29 | return $this->controller->render($this->view, ['model' => $model]); |
||
30 | } |
||
31 | } |