<?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']) ?>
<?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']) ?>