Magento – Why `code` folder is missing under `app` folder in magento 2 stable version

Architecturecomposermagento2module

I have downloaded Magento 2 stable from https://www.magentocommerce.com/download with sample data and installed.

It's working fine in both areas i.e. frontend & backend.

But I could not find app/code folder.

Similar module folders are found under vendor\magento.

  • Has the folder structure changed in Magento 2 again?
  • Where we can put our custom module folder?

Best Answer

app/code is missing because all Magento modules are put to vendor directory for 3rd-party developers convenience, so they do not have to mix their own code with the core. Now it is easy to develop custom modules without committing the whole Magento core to your GIT repository (unlike in Magento 1).