2

Can you tell me what are the best practice when you create a custom module for a project. I would say to put the custom module related to the project in app/code/MyNamespace/MyModule and all Generic Module should be in vendor. Or should I put all in vendor folder and call my modules with composer ?

Thanks

1 Answer 1

0

I would suggest using app/code approach if your main goal to create the module is for customization. Rather than storing it directly in the vendor folder.
Magento puts all core modules in the vendor folder allowing you to create your customization in app/code without the risk of being overwritten during Magento update/upgrade.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.