doufubian3479 2014-02-25 06:32
浏览 26
已采纳

找不到codeigniter控制器.php

I am using the CI default .htaccess and the CI dynamic base_url().

My issue is that I have the deploy.php in the controllers folder but when I try and access via www.domain.com/deploy.php I get 404 not found why?

  • 写回答

1条回答 默认 最新

  • dtwvr26066 2014-02-25 06:34
    关注

    Codeigniter controllers are accessed like that www.domain.com/deploy(by class name in lower case, file name must match classname inside in lower case and class must extend CI_Controller)

    The file you mention is nothing like that, so it is better to be called from the folder where index.php resides.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料