dongxidui1227 2014-04-10 21:12
浏览 67

访问被禁止! CodeIgniter和CodeLobster

I have xampp intalled on my windows computer and I am developing with Codeigniter using CodeLobster environment, and the problem is that every time I click preview in any of the php I am working on I get:

Access forbidden!
You don't have permission to access the requested object.
It is either read-protected or not readable by the server.

And I can see that CodeLobster is trying to reach to:

    http://localhost/mywebsite/application/controllers/project/add.php

However, If I want to access successfully I have to access with browser from:

    http://localhost/mywebsite/index.php/project/add

I checked base_url from config.php and I think it is pointing in the right direction:

    $config['base_url'] = "http://localhost/mywebsite/";

Why does CodeLobster go to the wrong direction?

  • 写回答

1条回答 默认 最新

  • dqthn68688 2014-04-10 21:31
    关注

    For a framework like CodeIgniter, you are likely going to want to use "Preview via Webserver" in CodeLobster. I don't have much experience with it, but that should give you the result you are looking for.

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!