We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Share Models and Controllers

In multi module application, How can controller in one module access model and service in another module ?



465
edited Sep '15

You can make a common directory , and register it in Module.php ( with namespace)

Just register those models and services before registering modules.