<?php Modal::begin([
'id'=>'myModal',
'header' => '<h2>标题</h2>']);
echo '内容';
Modal::end();?>
这里只需要设置 'data-target'=>'#myModal','data-toggle'=>'modal'
<?=Html::submitButton('<b>登录</b>', [ 'data-target'=>'#myModal', 'data-toggle'=>'modal']) ?>
2023-07-17 16:28:52
<?php Modal::begin([
'id'=>'myModal',
'header' => '<h2>标题</h2>']);
echo '内容';
Modal::end();?>
这里只需要设置 'data-target'=>'#myModal','data-toggle'=>'modal'
<?=Html::submitButton('<b>登录</b>', [ 'data-target'=>'#myModal', 'data-toggle'=>'modal']) ?>