Exemplo n.º 1
0
<?php

use yii\helpers\Html;
use yii\bootstrap\Nav;
\frontend\assets\MainAsset::register($this);
?>




<?php 
$this->beginPage();
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <title><?php 
$this->title;
?>
</title>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <?php 
echo Html::csrfMetaTags();
?>

Exemplo n.º 2
0
<?php

use yii\helpers\Html;
use yii\bootstrap\Nav;
use frontend\assets\MainAsset;
MainAsset::register($this);
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <?php 
echo Html::csrfMetaTags();
?>
    <?php 
$this->head();
?>
</head>

<body>

<?php 
$this->beginBody();
?>

<!-- Header Starts -->