toir427 /
yii2-admin
| 1 | <?php |
||
| 2 | |||
| 3 | use yii\bootstrap\NavBar; |
||
|
0 ignored issues
–
show
|
|||
| 4 | use yii\bootstrap\Nav; |
||
|
0 ignored issues
–
show
The type
yii\bootstrap\Nav was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 5 | use yii\helpers\Html; |
||
| 6 | |||
| 7 | /* @var $this \yii\web\View */ |
||
| 8 | /* @var $content string */ |
||
| 9 | |||
| 10 | list(,$url) = Yii::$app->assetManager->publish('@toir427/admin/assets'); |
||
| 11 | $this->registerCssFile($url.'/main.css'); |
||
| 12 | ?> |
||
| 13 | <?php $this->beginPage() ?> |
||
| 14 | <!DOCTYPE html> |
||
| 15 | <html lang="en"> |
||
| 16 | <head> |
||
| 17 | <meta charset="utf-8"/> |
||
| 18 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
||
| 19 | <?= Html::csrfMetaTags() ?> |
||
| 20 | <title><?= Html::encode($this->title) ?></title> |
||
| 21 | <?php $this->head() ?> |
||
| 22 | </head> |
||
| 23 | <body> |
||
| 24 | <?php $this->beginBody() ?> |
||
| 25 | <?php |
||
| 26 | NavBar::begin([ |
||
| 27 | 'brandLabel' => false, |
||
| 28 | 'options' => ['class' => 'navbar-inverse navbar-fixed-top'], |
||
| 29 | ]); |
||
| 30 | |||
| 31 | if (!empty($this->params['top-menu']) && isset($this->params['nav-items'])) { |
||
| 32 | echo Nav::widget([ |
||
| 33 | 'options' => ['class' => 'nav navbar-nav'], |
||
| 34 | 'items' => $this->params['nav-items'], |
||
| 35 | ]); |
||
| 36 | } |
||
| 37 | |||
| 38 | echo Nav::widget([ |
||
| 39 | 'options' => ['class' => 'nav navbar-nav navbar-right'], |
||
| 40 | 'items' => $this->context->module->navbar, |
||
| 41 | ]); |
||
| 42 | NavBar::end(); |
||
| 43 | ?> |
||
| 44 | |||
| 45 | <div class="container"> |
||
| 46 | <?= $content ?> |
||
| 47 | </div> |
||
| 48 | |||
| 49 | <footer class="footer"> |
||
| 50 | <div class="container"> |
||
| 51 | <p class="pull-right"><?= Yii::powered() ?></p> |
||
| 52 | </div> |
||
| 53 | </footer> |
||
| 54 | |||
| 55 | <?php $this->endBody() ?> |
||
| 56 | </body> |
||
| 57 | </html> |
||
| 58 | <?php $this->endPage() ?> |
||
| 59 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths