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 28dc23ddac
commit ccd4ae9f3c
5 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,8 @@ yii\debug\DebugAsset::register($this);
<html>
<?php $this->beginPage() ?>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>