kohana模块mocules是如何工作的(级联文件系统)

今天在加载模块时出现莫名的错误,
访问
http://localhost/模块a/mac/service/index
http://localhost/模块b/mac/service/index
访问  模块b数据  会读取  模块a的 数据
原因是因为 模块a  在配置文件中的加载顺序是先加载的,所以产生了覆盖,按照文档说明是这样写的:

模块怎样工作(How modules work)link to this

一个在已启用的module中的文件,在应用程序文件夹的同一个地方有确切的文件几乎相同。主要的区别在于,它可以通过级联文件系统在一个较高的位置(模块启用后,或在应用程序文件夹)用名称相同的文件来覆盖掉。 (原文#A file in an enabled module is virtually the same as having that exact file in the same place in the application folder. The main difference being that it can be overwritten by a file of the same name in a higher location (a module enabled after it, or the application folder) via the Cascading Filesystem. It also provides an easy way to organize and share your code.)

出现这个原因   可能也就是因为级联文件的关系吧。
kohana模块mocules是如何工作的(级联文件系统) - 网站笔记 - 网站笔记的博客
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值