diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 25127d4..074e7ef 100644 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -95,11 +95,12 @@ class SiteController extends Controller ]; */ - list ($controller) = explode ('/', $page['template_file']); + list ($controller, $view) = explode ('/', $page['template_file']); // подключаем return Yii::$app->runAction($page['template_file'], [ 'controller_name' => $controller, + 'view' => $view, 'page_id' => $page['page_id'], 'template_file' => $page['template_file'], ]); -- libgit2 0.21.4