In Magento 1 we can check the code structure from the core files(app/code/core).
How to check the Magento 2 core files fore coding structure?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
In Magento 1, core files of modules are loacated at
For example, core files of catalog module are located at
While in Magento 2, core files of catalog module are located at
In Magento 1, core files of theme are located at app/design/frontend(adminhtml)
For example, core design files of catalog module are located at
And css, js, images are located at
skin/frontend/base/default/(CSS, images, js)
While in Magento 2, all code, design, js, CSS files are located in one place
vendor/magento/module-catalog/view/frontend(adminhtml)/templates // Phtml files
vendor/magento/module-catalog/view/frontend(adminhtml)/layout // Layout xml files
vendor/magento/module-catalog/view/frontend(adminhtml)/web // Images, html, js, css files
In Magento2 you can check core files from Vendor/Magento then specific module directory and its files.
Lets say you may would like to see catalog module code then you need to located at Vendor/Magento/module-catalog
Refer this link for more details - https://darshanbhavsar.wordpress.com/2015/02/03/magento-2-directory-structure/
Core files path in Magento 2: vendor/magento folder.
You can access different modules likes
vendor/magento/module-catalog : Catalog
vendor/magento/module-checkout : Checkout
vendor/magento/module-cms : CMS
vendor/magento/module-customer : Customer
And many more....
To make any changes in core file you need to copy module and follow the structure as follows:
Layout - app/design/frontend/ThemePackage/Theme/Magento_Catalog/layout/..... (with xmls)
Templetes - app/design/frontend/ThemePackage/Theme/Magento_Catalog/templates/..... (with phtmls)
Block/Model/Controller - You need to override in your Package app/code/Package/Module