bedezign / yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.
https://bedezign.github.io/yii2-audit/
Other
193 stars 112 forks source link

Breadcrumbs should support Bootstrap 4 #286

Open ashaduri opened 2 years ago

ashaduri commented 2 years ago

The Audit 1.1.2 module layout uses:

use yii\widgets\Breadcrumbs;

When bootstrap 4 is in use, the (compatible) breadcrumbs widget should come from:

use yii\bootstrap4\Breadcrumbs;

Currently the breadcrumbs widget is broken because of this.

Thanks

chunlaw commented 2 years ago

I have resolved the same issue by pointing the layout to the expected layout file by updating the config/main.php.

    'modules' => [
        'audit' => [
            'class' => 'bedezign\yii2\audit\Audit',
            'layout' => '../../../../../../backend/views/layouts/main', // it is now reference to /app/backend/views/layouts/main.php
        ],
    ],
ashaduri commented 2 years ago

I have resolved the same issue by pointing the layout to the expected layout file by updating the config/main.php.

    'modules' => [
        'audit' => [
            'class' => 'bedezign\yii2\audit\Audit',
            'layout' => '../../../../../../backend/views/layouts/main', // it is now reference to /app/backend/views/layouts/main.php
        ],
    ],

Thanks for the tip! I tried:

'layout' => '@app/views/layouts/main',

and it worked for me.

I will still keep this issue open since the Audit module's own layout is broken with Bootstrap 4.