嗯,我不知道如何解释这个问题,因为它太奇怪了。
//Config/bootstrap.php
class AppController extends Controller {
public $components = array(
'DebugKit.Toolbar',
'Security' => array('csrfUseOnce' => false,'csrfExpires' => '+1 hour'),
'Session',
//more code below
我改变的是删除 DebugKit.Toolbar 然后引导模式没有显示。
//default.ctp anchor tag
<li><?=$this->Html->link('Sign in', '/signin',array('data-toggle'=>'modal','data-remote'=>'false','data-target'=>'#signin'));?></li>
//default.ctp modal
<section class="modal fade" id="signin" tabindex="-1" role="dialog" aria-labelledby="Sign in" aria-hidden="true">
//some other code
</section>
//default.ctp script
</footer>
<?php
echo $this->Html->script(array('bootstrap','jquery.min','holder'));
?>
</body>
我完全感到困惑,因为卸载插件如何使引导模式与不工作无关?知道我做错了什么吗?