Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class Action extends \yii\base\Action |
||
10 | { |
||
11 | public $primaryKeyParam = 'id'; |
||
12 | public $layout; |
||
13 | public $view; |
||
14 | public $modelClass; |
||
15 | |||
16 | public function init() |
||
17 | { |
||
18 | if ($this->layout) { |
||
19 | $this->controller->layout = $this->layout; |
||
20 | } |
||
21 | parent::init(); |
||
22 | } |
||
23 | |||
24 | public function __call($name, $params) |
||
34 | } |
||
35 | } |