今天在加载模块时出现莫名的错误,
访问
http://localhost/模块a/mac/service/index
http://localhost/模块b/mac/service/index
访问 模块b数据 会读取 模块a的 数据
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 co
出现这个原因 可能也就是因为级联文件的关系吧。
