form > div.row > div.col-lg-8 { width: 100%; } </style> <?php $addition = isset($addition) ? $addition : ''; $notVisible = isset($notVisible) && is_array($notVisible) ? $notVisible : []; $titleBox = isset($titleBox) ? $titleBox : 'Origin table'; /* @var $this yii\web\View */ /* @var $form yii\widgets\ActiveForm */ /* @var $generator \infinitydevphp\gii\table\Generator */ use insolita\wgadminlte\Box; \yii\web\YiiAsset::register($this); \insolita\wgadminlte\JCookieAsset::register($this); insolita\wgadminlte\ExtAdminlteAsset::register($this); \dmstr\web\AdminLteAsset::register($this); if (!in_array('db', $notVisible)) { echo $form->field($generator, $addition . 'db'); } if (!in_array('migrationPath', $notVisible)) { echo $form->field($generator, $addition . 'migrationPath'); } if (!in_array('useTablePrefix', $notVisible)) { echo $form->field($generator, $addition . 'useTablePrefix')->checkbox(); } Box::begin(['type' => Box::TYPE_PRIMARY, 'withBorder' => true, 'title' => $titleBox, 'collapse' => true]); if (!in_array('migrationName', $notVisible)) { echo $form->field($generator, $addition . 'migrationName')->hiddenInput()->label(false); } if (!in_array('tableName', $notVisible)) { echo $form->field($generator, $addition . 'tableName');
<?php use yii\helpers\Html; use dmstr\helpers\AdminLteHelper; use backend\assets\AppAsset; use dmstr\web\AdminLteAsset; /* @var $this \yii\web\View */ /* @var $content string */ AppAsset::register($this); AdminLteAsset::register($this); $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist'); $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 /** * Configuration file for the "yii asset" console command. * Note that in the console environment, some path aliases like '@webroot' and '@web' may not exist. * Please define these missing path aliases. */ return ['jsCompressor' => 'java -jar /root/compiler.jar --js {from} --js_output_file {to}', 'cssCompressor' => 'yui-compressor --type css {from} -o {to}', 'bundles' => ['app\\assets\\AppAsset', 'app\\modules\\backend\\assets\\AdminAsset', \dmstr\web\AdminLteAsset::className()], 'targets' => ['frontend' => ['class' => 'yii\\web\\AssetBundle', 'basePath' => '@app/../web/assets-prod', 'baseUrl' => '@web/assets-prod', 'js' => 'js/frontend-{hash}.js', 'css' => 'css/frontend-{hash}.css', 'depends' => ['app\\assets\\AppAsset']], 'backend' => ['class' => 'yii\\web\\AssetBundle', 'basePath' => '@app/../web/assets-prod', 'baseUrl' => '@web/assets-prod', 'js' => 'js/backend-{hash}.js', 'css' => 'css/backend-{hash}.css', 'depends' => ['app\\modules\\backend\\assets\\AdminAsset', \dmstr\web\AdminLteAsset::className()]], 'all' => ['class' => 'yii\\web\\AssetBundle', 'basePath' => '@app/../web/assets-prod', 'baseUrl' => '@web/assets-prod', 'js' => 'js/all-{hash}.js', 'css' => 'css/all-{hash}.css']], 'assetManager' => ['basePath' => '/app/web/assets-prod', 'baseUrl' => '/assets-prod']];
public function init() { $this->css[] = '/css/global.css'; $this->js[] = '/js/utils.js'; parent::init(); }