<?php $this->beginPage(); ?> <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <?php echo \yii\helpers\Html::csrfMetaTags(); ?> <title><?php echo $this->title; ?> </title> <?php $this->head(); ?> </head> <?php $this->beginBody(); ?> <body> Common layout start <?php echo $content; ?> Common layout end <?php $this->endBody();
use yii\easyii\assets\AdminAsset; $asset = AdminAsset::register($this); $moduleName = $this->context->module->id; $this->beginPage(); ?> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "/> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Yii::t('easyii', 'Control Panel'); ?> - <?php echo Html::encode($this->title); ?> </title> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="shortcut icon" href="<?php echo $asset->baseUrl; ?> /favicon.ico" type="image/x-icon"> <link rel="icon" href="<?php echo $asset->baseUrl;
use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use app\assets\AppAsset; AppAsset::register($this); ?> <?php //$this->beginPage() ?> <!DOCTYPE html> <html lang="<?= Yii::$app->language ?>"> <head> <meta charset="<?= Yii::$app->charset ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?= Html::csrfMetaTags() ?> <title>Listado movimientos</title> <link rel="stylesheet" href="css/printinventario.css" /> <script src="scripts/miscript.js" type="text/javascript"></script> <?php $this->head() ?> </head> <body> <div class="container"> <?= $content ?> </div> </div> </body> </html>
function wp_head() { echo Html::csrfMetaTags(); Yii::$app->view->head(); do_action('wp_head'); Yii::$app->view->beginBody(); }