- Добавлено условие выведения шапки в главном шаблоне

parent 01847bd9
......@@ -26,7 +26,7 @@ AppAsset::register($this);
<?php $this->beginBody() ?>
<?php echo $this->render('header'); // Добавить проверку на авторизацию и вывести другую шапку header-auth.php ?>
<?php echo (Yii::$app->user->isGuest) ? $this->render('header') : $this->render('header-auth'); // Добавить проверку на авторизацию и вывести другую шапку header-auth.php ?>
<?php echo $content ?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment