HMVC安装过程中出现错误,如何排除?
During HMVC installation an error occurred, how to remove?
我是 codeigniter HMVC 结构的新手,按照这个 link 安装。
https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/src
已执行所有步骤,但在执行到第 12 步时显示错误。
步骤:
- 从干净的 CI 安装开始
- 为您的安装正确设置 $config[‘base_url’]
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
- 将模块化扩展 third_party 文件放入 application/third_party 目录
- 将模块化扩展核心文件放入 application/core,不需要 MY_Controller.php 文件,除非您希望创建
你自己的控制器扩展
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
- 创建模块目录结构application/modules/welcome/controllers
- 将控制器 application/controllers/welcome.php 移动到 application/modules/welcome/controllers/welcome.php
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
- 创建目录application/modules/welcome/views
- 将视图 application/views/welcome_message.php 移动到 application/modules/welcome/views/welcome_message.php
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
错误:
您的视图文件夹路径似乎设置不正确。请打开以下文件并更正:index.php
请问如何解决? route/config.index 等是否需要更改?我也应该将配置文件夹复制粘贴到每个模块吗?目前他们都是默认的。
我的CI版本是最新的3.0.3
在配置中 index_page 是空的而不是 index.php
$config['index_page'] = '';
也通过添加 index.php 而不是空的来检查。
我在网上搜索了另一件事,也尝试将 View、Controler 等文件夹名称大写,但没有任何反应。
我是 codeigniter HMVC 结构的新手,按照这个 link 安装。 https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/src
已执行所有步骤,但在执行到第 12 步时显示错误。
步骤:
- 从干净的 CI 安装开始
- 为您的安装正确设置 $config[‘base_url’]
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
- 将模块化扩展 third_party 文件放入 application/third_party 目录
- 将模块化扩展核心文件放入 application/core,不需要 MY_Controller.php 文件,除非您希望创建 你自己的控制器扩展
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
- 创建模块目录结构application/modules/welcome/controllers
- 将控制器 application/controllers/welcome.php 移动到 application/modules/welcome/controllers/welcome.php
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
- 创建目录application/modules/welcome/views
- 将视图 application/views/welcome_message.php 移动到 application/modules/welcome/views/welcome_message.php
- 访问 URL /index.php/welcome => 显示欢迎使用 CodeIgniter
错误:
您的视图文件夹路径似乎设置不正确。请打开以下文件并更正:index.php
请问如何解决? route/config.index 等是否需要更改?我也应该将配置文件夹复制粘贴到每个模块吗?目前他们都是默认的。 我的CI版本是最新的3.0.3 在配置中 index_page 是空的而不是 index.php
$config['index_page'] = '';
也通过添加 index.php 而不是空的来检查。 我在网上搜索了另一件事,也尝试将 View、Controler 等文件夹名称大写,但没有任何反应。