Search code examples
magento

Magento 2 Folder Structure Differ


I am new to Magento 2...and trying to learn CODEPOOL in Magento 2. This is a very basic question regarding Magento 2 Folder Structure.Magento 2 is differ from other previous version like Magento 1.9.1,1.9.0 ...


Solution

  • Magento 2 is significantly different from Magento 1.X and s not backward compatible as well.

    In Magento 2,

    • All Custom Modules will go in app/code
    • Module Name will be something similar to app/code/[Company]/[Module]
    • View of the module (layout XMLs, Template .phtmls, Module Javascripts, LESS, CSS and all related files) will now go inside the Module Folder itself, making the module is standalone and independant
    • No More codepools. Core team has written their own modules for functionalities and core code lives in [MAGE_ROOT]/vendor/magento/. for example Catalog Module is now at [MAGE_ROOT]/vendor/magento/module-catalog having the module name Magento_Catalog
    • Even the Magento themes are now coming as Modules, look for [MAGE_ROOT]/vendor/magento/theme-frontend-luma or [MAGE_ROOT]/vendor/magento/theme-adminhtml-backend
    • Usage of Advanced Design Patterns and Features like Namespaces, Automatic Dependancy Injection, Static Content Generation

    Some Used Technologies

    Good Tutorials to Follow

    Give it a try. It's complex, more advanced. But worth learning...