[英]Codeigniter HMVC modules locations
In my codeigniter application I'm using codeigniter HMVC.在我的 codeigniter 应用程序中,我使用的是 codeigniter HMVC。 And it works fantastic!
而且效果很好!
But I want to have 2 modules folders:但我想要 2 个模块文件夹:
application/controllers/
folderapplication/controllers/
文件夹中applications/
folder.applications/
文件夹中。 I can't figure out how I need to change the modules_location
array so this will work.我不知道我需要如何更改
modules_location
数组,这样才能工作。 At this moment my modules_location
looks like this :此时我的
modules_location
看起来像这样:
$config['modules_locations'] = array(
APPPATH.'modules/' => '../modules/',
);
I just need to add one line to make this system working, but which one?我只需要添加一行就可以让这个系统工作,但是哪一行呢?
I'm doing it this way :我是这样做的:
$config['modules_locations'] = array(
APPPATH.'modules/core/' => '../modules/core/',
APPPATH.'modules/plugins/' => '../modules/plugins/',
);
and it's working as expected.它按预期工作。
I have tried to externalize the modules root outside of the application folder but no success so far, I'll keep testing and let you know if it works and if I don't forget to post it here.我曾尝试将模块根目录外部化到应用程序文件夹之外,但到目前为止没有成功,我会继续测试并让您知道它是否有效,如果我没有忘记将其张贴在这里。
Cheers !干杯!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.