Answer the question
In order to leave comments, you need to log in
Why is the button not showing in yii\bootstrap\Modal?
The button to call the modal window is not displayed, I connected it in the following way.
You have to call the window with a separate function in js, but judging by the documentation, a button should be created to call the window.
use yii\bootstrap\Modal;
<?php
Modal::begin([
'header' => '<h2>Hello world</h2>',
'toggleButton' => ['label' => 'Модальное окно'],
'footer' => 'Низ окна'
]);
echo 'Содержимое окна';
Modal::end();
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question