Warning: Your browser is very out-of-date. You should upgrade to a better browser.

Magento 1

A brief reminder of the Magento 1 folder structure:

  • app/code followed by either
    • /core for core files
    • /community for third party extensions
    • /local for custom development
  • Modules in the above areas were declared via an XML file in app/etc/module
  • Layouts and templates were located in app/design/frontend
  • Style and JS files were stored in the skin and js subdirectories.

The Changes

Magento 2 replaces the core/communitys module groupings and everything is now directly stored in app/code or vendor composer modules.
Modules are Declared inside each module in the /etc directory. Layouts and templates are moved a new /view directory. Style and JS files are moved inside modules.

Magento 2

  • All core, third party, custom and theme modules go in either vendor (composer) or app/code.
  • Core modules are include in the same way local or community modules are. Each module is listed under a vendor-name/module-name directory inside either vendor or app/code For core modules, the vendor is “magento”.
  • Module front-end code is now stored with the module rather than with the front-end theme. For example the Luma theme is stored as a module in vendor/magento/theme-frontend-luma

Magento 2 Modules

Each module, once installed either manually or via composer will create the following inside the app/code directory:

  • /etc - the main configuration folder and module xml
  • /Setup - database table related file which run in the first instance/during updates
  • /Controller - controller classes and implementation
  • /Model - model classes/business logic
  • /Helper - miscellaneous data
  • /Block - view classes
  • /view - phtml, CSS and JS required to display the module
  • /i18n - internationalisation/languages


Magento is a feature-rich ecommerce platform built on open-source technology that provides online merchants with unprecedented flexibility and control over the look, content and functionality of their ecommerce store.

About Magento Ecommerce · Magento Posts

Related Magento Posts

April 2021

Notes: Magento 2 Directory Structure

Magento 1 A brief reminder of the Magento 1 folder structure: app/code followed by either /core for core files /community for third party extensions /local...
March 2021

Magento 2.4.2

The latest version of Magento has been released - Magento version 2.4.2 is the usual mix of security updates, performance and some improvements to the...
November 2020

What is Magento Open Source?

Previously known as Magento Community Edition, Magento Open Source is the ecommerce platform. Adobe which acquired Magento in 2018 has confirmed the open source edition...
September 2020

Moving on from Magento: OpenMage and Mage One

While many companies have already upgraded to Magento 2 or moved on to alternative ecommerce platforms like Shopify, many smaller companies or larger companies with...
April 2020

Coronavirus: Ecommerce in a Pandemic

Online sellers need to keep on top of the impact COVID—19 is and will continue to have on retailers. The links below are some thoughts...
March 2020

Coronavirus: Managing your Magento ecommerce store in Lockdown

The UK has now entered lockdown with everyone being told to stay at home. The spread of coronavirus (COVID—19) continues to increase day by day...

More Magento Posts...