示例#1
0
<?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\FrontendAsset;
FrontendAsset::register($this);
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
示例#2
0
文件: main.php 项目: ostashevdv/brick
<?php

/**
 * @var \yii\web\View $this
 */
use yii\helpers\Html;
$am = \app\assets\FrontendAsset::register($this);
$this->beginPage();
?>
<!doctype html>
<html class="no-js" lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
echo Html::csrfMetaTags();
?>
    <?php 
$this->head();
?>
</head>