Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breadcrumbs should support Bootstrap 4 #286

Open
ashaduri opened this issue Dec 15, 2021 · 2 comments
Open

Breadcrumbs should support Bootstrap 4 #286

ashaduri opened this issue Dec 15, 2021 · 2 comments

Comments

@ashaduri
Copy link

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
Copy link

chunlaw commented Jul 8, 2022

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants