1 | <?php |
||
2 | |||
3 | /* @var $this \yii\web\View */ |
||
4 | /* @var $content string */ |
||
5 | |||
6 | use sample\assets\AppAsset; |
||
0 ignored issues
–
show
|
|||
7 | use sample\widgets\Alert; |
||
0 ignored issues
–
show
The type
sample\widgets\Alert 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 ![]() |
|||
8 | use yii\bootstrap4\Breadcrumbs; |
||
0 ignored issues
–
show
The type
yii\bootstrap4\Breadcrumbs 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 ![]() |
|||
9 | use yii\bootstrap4\Html; |
||
0 ignored issues
–
show
The type
yii\bootstrap4\Html 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 ![]() |
|||
10 | use yii\bootstrap4\Nav; |
||
0 ignored issues
–
show
The type
yii\bootstrap4\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 ![]() |
|||
11 | use yii\bootstrap4\NavBar; |
||
0 ignored issues
–
show
The type
yii\bootstrap4\NavBar 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 ![]() |
|||
12 | |||
13 | die('test'); |
||
14 | AppAsset::register($this); |
||
15 | ?> |
||
16 | <?php $this->beginPage() ?> |
||
17 | <!DOCTYPE html> |
||
18 | <html lang="<?= Yii::$app->language ?>" class="h-100"> |
||
19 | <head> |
||
20 | <meta charset="<?= Yii::$app->charset ?>"> |
||
21 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
||
22 | <?php $this->registerCsrfMetaTags() ?> |
||
23 | <title><?= Html::encode($this->title) ?></title> |
||
24 | <?php $this->head() ?> |
||
25 | </head> |
||
26 | <body class="d-flex flex-column h-100"> |
||
27 | <?php $this->beginBody() ?> |
||
28 | |||
29 | <header> |
||
30 | <?php |
||
31 | NavBar::begin([ |
||
32 | 'brandLabel' => Yii::$app->name, |
||
33 | 'brandUrl' => Yii::$app->homeUrl, |
||
34 | 'options' => [ |
||
35 | 'class' => 'navbar navbar-expand-md navbar-dark bg-dark fixed-top', |
||
36 | ], |
||
37 | ]); |
||
38 | echo Nav::widget([ |
||
39 | 'options' => ['class' => 'navbar-nav'], |
||
40 | 'items' => [ |
||
41 | ['label' => 'Home', 'url' => ['/site/index']], |
||
42 | ['label' => 'About', 'url' => ['/site/about']], |
||
43 | ['label' => 'Contact', 'url' => ['/site/contact']], |
||
44 | Yii::$app->user->isGuest |
||
45 | ? ['label' => 'Login', 'url' => ['/user/login']] |
||
46 | : ( |
||
47 | '<li>' |
||
48 | . Html::beginForm(['/site/logout'], 'post', ['class' => 'form-inline']) |
||
49 | . Html::submitButton( |
||
50 | 'Logout (' . Yii::$app->user->identity->username . ')', |
||
51 | ['class' => 'btn btn-link logout'] |
||
52 | ) |
||
53 | . Html::endForm() |
||
54 | . '</li>' |
||
55 | ) |
||
56 | ], |
||
57 | ]); |
||
58 | NavBar::end(); |
||
59 | ?> |
||
60 | </header> |
||
61 | |||
62 | <main role="main" class="flex-shrink-0"> |
||
63 | <div class="container"> |
||
64 | <?= Breadcrumbs::widget([ |
||
65 | 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], |
||
66 | ]) ?> |
||
67 | <?= Alert::widget() ?> |
||
68 | <?= $content ?> |
||
69 | </div> |
||
70 | </main> |
||
71 | |||
72 | <footer class="footer mt-auto py-3 text-muted"> |
||
73 | <div class="container"> |
||
74 | <p class="float-left">© My Company <?= date('Y') ?></p> |
||
75 | <p class="float-right"><?= Yii::powered() ?></p> |
||
76 | </div> |
||
77 | </footer> |
||
78 | |||
79 | <?php $this->endBody() ?> |
||
80 | </body> |
||
81 | </html> |
||
82 | <?php $this->endPage() ?> |
||
83 |
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