Hello,
i have a question regarding the definition of the Modules in the Phalcon Application.
I tried to create a multi module application but it is always the case that just the module is loaded which i defined for the default routing and dispatcher.
The other Modules are not loaded. I tried and debugged many cases but it still won't work until i define a route that leads to the module and the controller.
I would like to describe the expected behaviour for me.
I want to split the Application into multiple Modules.
I need a "frontend" Module for the web application and a "database" module that contains all models / classes that communicate with the database. The Purpose of this splitted modules is that i just want to require the database module in order to work with the stored data. So i can use a Frontend Module for the Web and if i want to build an API i just create a new module "api" that requires the "database" module without requiring the frontend module . This way i can use parts of the Application in multiple was without needing to load every Module.
My problem is that i cannot access the models because the database module is not loaded, probably because no route is leading to this module.
Is there a way to trigger the load of a module manually?
Thanks in advance