Example #1
0
 /**
  * Renders the widget.
  */
 public function run()
 {
     AdminLteAsset::register($this->getView());
     return $this->renderItems($this->items, $this->options);
 }
Example #2
0
<?php

use yii\helpers\Html;
use themes\adminlte\assets\AdminLteAsset;
use yii\widgets\Breadcrumbs;
/* @var $this \yii\web\View */
/* @var $content string */
AdminLteAsset::register($this);
$breadcrumbs = isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [];
$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 
$this->head();