dpzff20644 2018-08-10 12:44
浏览 225
已采纳

我的PHP页面引用错误:缺少控制器

I´m new in PHP and creating dynamic webpages and after I installed Apache and my PHP IDE(codelobster) I face a serious problem.I really don´t know what I´m doing wrong but when I create new PHP project and I try to open it via my browser through localhost/...it always return me back a error page with this description:

Error:Missing controller Cake\Routing\Exception\MissingControllerException

My php file is called oneironaut.php so it gives me also: Oneironaut.phpController could not be found.

In the case you tried to access a plugin controller make sure you added it to your composer file or you use the autoload option for the plugin.

Error: Create the class Oneironaut.phpController below in file: src\Controller\Oneironaut.phpController.php

I tried to create different projects like with different names and there was always this bug diference only with name of my .php webpage.So I think this must be some system error and something in my xampp/php or Apache settings must change.Maybe there could be some connection with my unfunctional debugger , I tried to download Xdebug from https://xdebug.org/wizard.php and even though I follow instructions on this website and another websites too I can´t successfully get xdebug extensions into my computer.So in this some help will be highly appreciated too.

So give me someone please help what to do with these problems? Thank You so much.

  • 写回答

1条回答 默认 最新

  • douwo1862 2018-08-10 12:55
    关注

    This seems to be happening because the server is loading files in "case-sensitive" mode.

    You call your PHP file "oneironaut.php", however, the page is looking for "Oneironaut.php"

    A similar question has been answered here, please try: Missing Controller Error on remote server using Beta 3

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

报告相同问题?

悬赏问题

  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法