使用bootstrap 4模态时,PhpStorm 2016.1.2会出错

时间:2016-07-16 18:42:49

标签: php twitter-bootstrap phpstorm

回到PhpStorm 8.0.1(最近更新之前)我的引导模式曾经与这段代码完美配合,但现在PhpStorm说找不到文件?这里很奇怪的是代码:

 <form name="register" method="post" action="index.php">
                <div class="input-group margin-bottom-sm margin-bottom-input">
                    <span class="input-group-addon"><i class="fa fa-envelope-o fa-fw"></i></span>
                    <input type="email" class="form-control" name="registeremail" placeholder="Enter your email">
                </div>
                <div class="input-group margin-bottom-sm margin-bottom-input">
                    <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
                    <input type="text" class="form-control" name="registerusername" placeholder="Enter username">
        </div>
                <div class="input-group margin-bottom-sm margin-bottom-input">
                    <span class="input-group-addon"><i class="fa fa-unlock fa-fw"></i></span>
                    <input type="password" class="form-control" name="registerpassword" placeholder="Enter password">
                </div>
                <div class="input-group margin-bottom-sm margin-bottom-input">
                    <span class="input-group-addon"><i class="fa fa-unlock fa-fw"></i></span>
                    <input type="password" class="form-control" name="verifypassword" placeholder="Verify password">
                </div>
        <div class="modal-footer">
            <input type="submit" name="submit" class="btn btn-primary" value="Register">
            </form> 
        </div>

我的php:

if(isset($_POST['submit'])){?>
<script type="text/javascript">
$(function() {                       // On DOM ready
    $('#registerModal').modal('show');   // Show the modal
});
 </script> 
<?php } ?>
然而,PhpStorm说“找不到404文件”。

我做错了吗? PhpStorm 8.0.1中的这段代码完全正常。 莫代尔的截图: modal

0 个答案:

没有答案