winnie411 发表于 2012-8-28 12:56:11

新手CI登陆界面错误

<body
<div id="container">
    <h1>Welcome to NoticeBoard!</h1>
      <div id="body">
    <form action="/index.php/user/log" method="post">
            <div id="d1">
                <label>username:&nbsp;</label>
                <input type="text" name="username" size="20" value=""/>
            </div>
            <div id="d2">
                <label>password:&nbsp;</label>
                <input type="password" name="password" size="20" value=""/>
            </div>
            <div id="d3">
                <input type="submit" name="submit" value="Submit"/>
            </div>      
    </form>
    </div>   
    <p class="footer">2012 Tekautomotive Shanghai</p>
</div>
</body>
一点击提交提示一下错误:
Object not found!    The requested URL was not found on this server.      The link on the    referring    page seems to be wrong or outdated. Please inform the author of    that page    about the error.
If you think this is a server error, please contactthe webmaster.
Error 404localhost
Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4

请问是哪一步不正确呢?路径似乎已经到了http://localhost:8080/index.php/user/log
但是为什么没显示呢。谢谢


winnie411 发表于 2012-8-28 12:58:09

我用的是XAMPP的集成环境

bigfoolpig 发表于 2012-8-28 14:46:26

把index.php去了试试看?

winnie411 发表于 2012-8-28 22:13:41

去掉了也还是这个错误

文心雕龙 发表于 2012-8-30 17:47:20

控制器代码贴出来

liya22315 发表于 2012-8-30 18:06:10

The requested URL was not found on this server. 所请求的URL没有找到,action的地址最好用ci的site_url()这个来优化下地址,问题应该就是出现在这里

winnie411 发表于 2012-8-31 09:37:47

谢谢OK啦
页: [1]
查看完整版本: 新手CI登陆界面错误