Register meta tags with a method that works well with page cache

This commit is contained in:
Alexander Makarov 2018-03-15 01:17:30 +03:00
parent dafe5f6aff
commit 561b98a039
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A

View File

@ -19,7 +19,7 @@ AppAsset::register($this);
<meta charset="<?= Yii::$app->charset ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= Html::csrfMetaTags() ?>
<?php $this->registerCsrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>