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

Multi Module site

When building a multi module site. What is the best approach between; 1.using namespaces and 2.using bootsrap file



2.1k

if u use the dev-tools you can create the project with bootstrap =d

i have created one using 2 modules (frontend and backend) MVC structure.

And set front end to be the default namespace.

My reference is phalcon official documentation on setting multi module mvc structure.

but am getting the following error.

Module definition path '../apps/frontend/Module.php' does not exist

please advice



31.2k
Accepted
answer

I Completed a multimodule project and learned that Namespaces plays a major role in defining each and every module while bootstrap file is the central of the project at run time.I did some operations in the bootrap file to save the module such as assets management and defining routing