Codeigniter 3 HMVC wiredesignz 显示 404 错误

Codeigniter 3 HMVC wiredesignz showing 404 error

我从 here 下载了 HMVC 文件并使用这些文件设置了我的 CI 3 安装

  1. 将 MX 文件夹放入 application/third_party 文件夹
  2. 将文件放在 application/core MY_Loader & MY_Router
  3. $config['modules_locations'] = array(APPPATH.'modules/' => '../modules/',);
  4. 在应用程序中创建了一个文件夹模块。内部模块创建 welcome/controller 和 welcome/view
  5. 在 welcome/controller 我复制了默认的欢迎控制器,在 welcome/view welcome_message.
  6. 我从 application/controller 和 application/view 中删除了两个文件。

现在我收到 404 错误。

您将文件夹“module”的名称更改为“modules”。 在 modules 文件夹中: 您必须将 controllerview 文件夹重命名为 controllersviews. 希望这有帮助:)