Мы используем:Codeigniter HMVC Не удалось загрузить требуемый файл
PHP5.6.14
WINDOWS 7
Codeigniter 3.0.6
[Codeigniter HMVC][1]
Структура нашего проекта:
application
----modules
--------auth
------------controllser
------------models
------------views
--------input
------------part1
----------------controllers
--------------------Part1.php
----------------models
----------------views
--------------------index.php
------------part2
----------------controllers
----------------models
----------------views
--------othermodule
------------controllser
------------models
------------views
в приложение/Config/config.php добавить
$config['modules_locations'] = array(
APPPATH.'modules/' => '../modules/',
APPPATH.'modules/input/' => '../modules/input/',
);
приложение/модули/вход/часть1/Part1.php
class Part1 extends MX_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->view('index');
}
}
в приложения/Config/routes.php Мы не меняли ничего
.htaccess
AddDefaultCharset utf-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Когда http://musite.ru/part1 мы видим ошибки:
An Error Was Encountered
Unable to load the requested file: index.php
В чем может быть проблема?
проверить страницу roytuts.com/setup-hmvc-with-codeigniter-3/ – user3470953