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
如何在codeigniter HMVC的文件夹模块中使用seaparate控制器?_Codeigniter_Hmvc - Fatal编程技术网

如何在codeigniter HMVC的文件夹模块中使用seaparate控制器?

如何在codeigniter HMVC的文件夹模块中使用seaparate控制器?,codeigniter,hmvc,Codeigniter,Hmvc,CI HMVC树默认值: modules/ ..login/controllers/Login.php ..home/controllers/Home.php 我想创建这棵树 modules/ ..frontend/login/controllers/Login.php ..frontend/home/controllers/Home.php ..backend/table/controllers/Table.php ..backend/password/controllers/Passwor

CI HMVC树默认值:

modules/
..login/controllers/Login.php
..home/controllers/Home.php
我想创建这棵树

modules/
..frontend/login/controllers/Login.php
..frontend/home/controllers/Home.php
..backend/table/controllers/Table.php
..backend/password/controllers/Password.php
但是当我试着打电话的时候http://domain/frontend/login :这给了我401个错误结果

如何做到这一点?

方法是

modules/
..frontend/controllers/login/Login.php
..frontend/controllers/home/Home.php
..backend/controllers/table/Table.php
..backend/controllers/password/Password.php
但是请注意,如果您想访问登录,您需要调用文件夹和控制器,即使它们具有相同的名称,例如。http://ci.dev/backend/login/login/实现这一点的方法是

modules/
..frontend/controllers/login/Login.php
..frontend/controllers/home/Home.php
..backend/controllers/table/Table.php
..backend/controllers/password/Password.php
但是请注意,如果您想访问登录,您需要调用文件夹和控制器,即使它们具有相同的名称,例如。http://ci.dev/backend/login/login/