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

Font Awesome Not Work Properly #177

Open
akhmadMizkat opened this issue Sep 23, 2018 · 4 comments
Open

Font Awesome Not Work Properly #177

akhmadMizkat opened this issue Sep 23, 2018 · 4 comments

Comments

@akhmadMizkat
Copy link

Hi,

I just installed version 2.4 of this extension like this:

composer require dmstr/yii2-adminlte-asset "^2.4"

Everything went fine until I realized that not all font awesome icons loaded. After do some debugging I notice that it caused by the missmatch version of font awesome neeeded by the AdminLTE which is version 4.7.0 and the font awesome provided by rmrevin\yii\fontawesome\AssetBundle which is using version 5.

To workaround this issue I temporarily comment the dependency in AdminLTEAsset.php like below:

    public $depends = [
        // 'rmrevin\yii\fontawesome\AssetBundle',
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
    ];

And load the font awesome version 4.7.0 manually on the layouts/main.php like below:

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

I don't know if this issue is valid or I just missed something.

Thank you.

@schmunk42
Copy link
Member

Why version did you get exactly for this extension and rmrevin? composer show.

@akhmadMizkat
Copy link
Author

Sorry eventually I got the 2.7.0-beta1 for the dmstr/yii2-adminlte-asset not the 2.4 version and 3.x-dev version for the rmrevin/yii2-fontawesome

Does the issue arise because it's not in the stable version?

@schmunk42
Copy link
Member

I think so. Could you try with 2.6.x?

Related issues:

@akhmadMizkat
Copy link
Author

Hi, sorry it's been a busy week here. Okay I'll try it out on that version.

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