Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php HMVC安装过程中发生错误,如何删除?_Php_Codeigniter_Hmvc_Codeigniter 3_Codeigniter Hmvc - Fatal编程技术网

Php HMVC安装过程中发生错误,如何删除?

Php HMVC安装过程中发生错误,如何删除?,php,codeigniter,hmvc,codeigniter-3,codeigniter-hmvc,Php,Codeigniter,Hmvc,Codeigniter 3,Codeigniter Hmvc,我是新的codeigniter HMVC结构,下面是安装链接。 已执行所有步骤,但在步骤12上达到时,显示错误 步骤: 从干净的CI安装开始 为您的安装正确设置$config['base\u url'] 访问URL/index.php/welcome=>显示对CodeIgniter的欢迎 将模块扩展第三方文件放入应用程序/第三方目录 将模块化扩展核心文件放入application/core,除非您希望创建,否则不需要MY_Controller.php文件 您自己的控制器扩展 访问URL/ind

我是新的codeigniter HMVC结构,下面是安装链接。

已执行所有步骤,但在步骤12上达到时,显示错误

步骤:

  • 从干净的CI安装开始
  • 为您的安装正确设置$config['base\u url']
  • 访问URL/index.php/welcome=>显示对CodeIgniter的欢迎
  • 将模块扩展第三方文件放入应用程序/第三方目录
  • 将模块化扩展核心文件放入application/core,除非您希望创建,否则不需要MY_Controller.php文件 您自己的控制器扩展
  • 访问URL/index.php/welcome=>显示对CodeIgniter的欢迎
  • 创建模块目录结构application/modules/welcome/controllers
  • 将controller application/controllers/welcome.php移动到application/modules/welcome/controllers/welcome.php
  • 访问URL/index.php/welcome=>显示对CodeIgniter的欢迎
  • 创建目录应用程序/模块/欢迎/视图
  • 将view application/views/welcome_message.php移动到application/modules/welcome/views/welcome_message.php
  • 访问URL/index.php/welcome=>显示对CodeIgniter的欢迎
  • 错误:

    您的视图文件夹路径似乎设置不正确。请打开以下文件并更正此错误:index.php

    $config['index_page'] = '';
    
    请问怎么解决?route/config.index等是否需要更改?我是否也应该将粘贴配置文件夹复制到每个模块?目前它们都是默认的。 我的CI版本是最新的3.0.3 在配置中,index_页面是空的,而不是index.php

    $config['index_page'] = '';
    
    也可以通过添加index.php而不是空来检查。
    还有一件事我在网上搜索过,也尝试过将视图、控件等文件夹名称大写,但什么也没发生。

    尝试使用这个HMVC版本:


    仍然没有修复?我也有同样的问题。还没有解决,尝试了很多,现在回到codeigniter simple,以后会尝试。我再次从clean CI开始。成功了。但现在唯一的问题是它打印了两次视图。您的视图文件夹也在主应用程序文件夹中吗?