Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento 2 Folder Structure Differ

Tags:

magento

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 ...

like image 887
Balachandran Avatar asked Jul 09 '26 23:07

Balachandran


1 Answers

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

  • LESS, jQuery, RequireJS, knockout.js and More
  • Varnish, Redis, Memcached
  • Solr
  • A complete list as per the documentation http://devdocs.magento.com/guides/v2.0/architecture/tech-stack.html

Good Tutorials to Follow

  • http://alanstorm.com/
  • https://www.ashsmith.io/

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

like image 73
Dilhan Maduranga Avatar answered Jul 13 '26 16:07

Dilhan Maduranga