Commit 39abb0176f2977a6864eff382c860c6cf7d264c8

Authored by andryeyev
1 parent 142108bd

separate view fix

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
frontend/controllers/SiteController.php
... ... @@ -95,11 +95,12 @@ class SiteController extends Controller
95 95 ];
96 96 */
97 97  
98   - list ($controller) = explode ('/', $page['template_file']);
  98 + list ($controller, $view) = explode ('/', $page['template_file']);
99 99  
100 100 // подключаем
101 101 return Yii::$app->runAction($page['template_file'], [
102 102 'controller_name' => $controller,
  103 + 'view' => $view,
103 104 'page_id' => $page['page_id'],
104 105 'template_file' => $page['template_file'],
105 106 ]);
... ...