Example #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 
Example #2
0
<?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>