Fixes #1691: added “viewport” meta tag to layout views.

This commit is contained in:
Qiang Xue 2013-12-29 15:31:35 -05:00
parent ab34eaa4f9
commit c09c67c13c

View File

@ -16,6 +16,7 @@ AppAsset::register($this);
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>