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

Alert displayed without being invoked #1

Open
neoacevedo opened this issue Sep 16, 2021 · 2 comments
Open

Alert displayed without being invoked #1

neoacevedo opened this issue Sep 16, 2021 · 2 comments

Comments

@neoacevedo
Copy link

Adding <?= \hail812\adminlte\widgets\Alert::widget(); ?> into the content layout, the alert widget is displayed in each page without actually to have invoked to setFlash session method, while the Yii2 alert widget only is showed when a setFlash message is invoked.

@cahyasatya77
Copy link

it's same problem. I'am use <?= common\widgets\Alert::widget()?> to solve alert issue. but doesn't solve the problem with this <?= \hail812\adminlte\widgets\Alert::widget(); ?>.

@optmsp
Copy link

optmsp commented Jul 6, 2022

Are you trying to create a flash alert or create an alert box? What about:

<?= \hail812\adminlte\widgets\FlashAlert::widget() ?>

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

3 participants