我知道Phalcon的多模块应用程序结构,但有可能像下面的例子一样具有嵌套的模块结构吗?我想有一个系统,在那里我可以将新的子模块(用于后端,前端)热插入系统。当我将一个新的模块文件夹复制到子模块文件夹中时,路径,菜单条目等应该自动扩展。使用Phalcon PHP框架嵌套的多模块应用程序?
module-backend
controllers
models etc.
sub-modules
forum
controllers
models
etc.
news
controllers
models
etc.
users
controllers
models
etc.
module-frontend
controllers
models
sub-modules
like backend module structure
有没有办法用事件来热插拔这样的模块到系统?
使用标准多模块化结构,我认为最起码你要做的就是与逻辑来定制你的路由器。我认为针对多模块应用程序的建议方法是将所有模块放在顶层(例如后端和前端)。 –