<?php /* @var $this yii\web\View */ //use yii\base\Widget; use yii\widgets\Menu; use yii\helpers\Html; use yii\helpers\Url; use backend\assets\AdminlteAsset; $bundle = AdminlteAsset::register($this); //echo $bundle->baseUrl; $this->title = 'JurnalRumah.com'; ?> <div class="site-index"> <div class="jumbotron"> <h1>Selamat Datang!</h1> <?php // echo Menu::widget([ // 'items' => [ // ['label' => 'Logout (' . Yii::$app->user->identity->email . ')', // 'url' => ['/site/logout'], // 'visible' => !Yii::$app->user->isGuest, // 'linkOptions' => ['data-method' => 'post']], // ], // 'labelTemplate' =>'{label} Label', // 'linkTemplate' => '<a href="{url}" data-method="post"><span>{label}</span></a>', // // ]); ?> </div> </div>
<?php use backend\assets\AppAsset; use backend\assets\AdminlteAsset; use yii\helpers\Html; /* @var $this \yii\web\View */ /* @var $content string */ AppAsset::register($this); AdminlteAsset::register($this); $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@bower') . '/admin-lte/dist'; print_r($directoryAsset); die; $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(); ?> <link rel="shortcut icon" href="<?php echo \Yii::$app->request->baseUrl; ?>