Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function init() |
||
41 | { |
||
42 | parent::init(); |
||
43 | |||
44 | // Это здесь для того, чтобы переключаться между frontend и backend |
||
45 | if ($this->isBackend === true) { |
||
46 | $this->controllerNamespace = 'modules\main\controllers\backend'; |
||
47 | $this->setViewPath('@modules/main/views/backend'); |
||
48 | } else { |
||
49 | $this->setViewPath('@modules/main/views/frontend'); |
||
50 | } |
||
65 |