Forbes India Leader Recognition
e.preventDefault(); // Prevent form submission input.blur(); // remove focus input.value = ""; // optional: clear the input

Introduction to Magento 2.0

Introduction to Magento 2.0

Featured Image
Magento is a leading eCommerce platform used for online stores. It has a scalable solution with powerful out of box functionality, good store management, with outstanding customer experiences. Magento 2 is written in PHP which leverages elements of Zend Framework and MVC architecture.

Goals of Magento 2 Platform:

  1. Improved Performance and Scalability
  2. High Quality and tested code.
  3. Simplify Integrations.
  4. Easier Upgrades.

Magento 2 Components (Platform and Architecture):

  • Configuration: The main configuration of Magento 2 framework reside in app/etc/ folder. It contains env.php, config.php etc. files.
  • Framework: It resides under /lib/internal/Magento/Framework which contains framework classes.
  • Modules: Magento 2 modules located under app/code/Magento which has business logic.
  • Command-line Tool: This is the important utility of the Magento framework located inside bin/magento.
  • Themes: Themes contain static content belongs to the theme and located inside app/design folder.

File Types in Magento 2:

  1. Configuration files (XML files and a few php files).
  2. PHP classes
  3. Layout instructions (*.xml files)
  4. Templates (*.phtml files)
  5. Javascript modules (*.js files)
  6. Javascript templates (*.html files)
  7. Static Assets (CSS, images,..)

Magento 2 folder structure:

Magento 2 folder structure is much more different from Magento 1.x. Following are the folder structure of Magento 2.

/app: This folder contains core files of Magento 2 including modules, configuration and themes files.

/bin: It contains Magento 2 CLI feature. It helps you in installing modules, upgrading, reindexing and compiling, etc.

/dev: It contains tools for a developer such as MTF (Magento Test Framework)

/lib: This directory contains library files other than Magento 2 core files.

/phpserver: It contains routers.php file.

/pub: This directory contains all generated static files and media as well as it contains all publicly accessible files.

/setup: It contains several important packages like performance toolkit etc.

/var: This directory contains logs, raw cache files, sessions, and reports.

/vendor: This directory contains the packages generated from composer.json files.

magento 2-folderstructure

Following is the app/ folder structure image.

magento 2-app-folder

Magento 2 Theme Structure:

Default Magento 2 theme location is at app/design/frontend/. Theme directory contains typically following described file as given in the below image.Magento-theme-structure

  1. etc Directory: It contains a view.xml file which actually used to configure image for all storefront product images and thumbnails.
  2. i18n Directory: Contains CSV files for locales.
  3. media Directory: Contains images for that theme.
  4. web Directory: Contains CSS and JS files for the theme.

Apart from these directories all other folders/directories inside theme are to extend or override the default module specific theme. For example, Magento_Catalog module present inside a blank directory, please check out below image.

magento-catalog

Here it contains a catalog_product_view.xml file which actually extended from the parent catalog module located inside Magento/Catalog/view/layout/frontend/layout/catalog_product_view.xml given below.

parent-catalog-module

Magento 2 Module structure:

It is a directory containing blocks, controllers, models, helpers etc that are related to the specific business feature. Modules reside under app/code/ directory as explained below briefly.

<Magento Root>/app/code/Vendor/Module/
 | registration.php
 | composer.json
 |
 /etc/
 module.xml
  1. Web services: Apache 2.2 or 2.4 Nginx 1.8
  2. Database Engine: MySQL 5.6 MariaDB
  3. PHP: 5.6.x 5.5.x, where x is 22 or greater 7.0.2 up to 7.1.0, except for 7.0.5 . Not work on 7.0.5

Here is the link which shows easy step by step installation for Magento 2 https://www.mageplaza.com/kb/how-to-install-magento-2.html

Modes in Magento 2: There are three primary modes in Magento 2:

  1. Developer
  2. Production
  3. Default

Developer Mode: It enables automatic code compilation, enables enhanced debugging, provide verbose logging and it always intended for development only.

Production Mode: This mode usually used for deployment on a production system. It prevents automatic code compilation, does not show exceptions to the user and serves static files from cache type only.

Default mode: It is the default mode of the platform which enables to deploy Magento application on a single server without changing any settings. These are the basic and essentials concept regarding Magento 2 such as features, the basic structure of Magento platform, the file system of Magento 2, Magento 2 theme structure, installation of Magento 2, and modes of Magento 2 platform.

To deep dive into Magento 2 platform please go with the below links. https://devdocs.magento.com/guides/v2.0/extension-dev-guide/bk-extension-dev-guide.html

Related Posts

Latest Posts

  • All Posts
  • AI Powered Knowledge
  • ai/ml
  • CEO India Magazine
  • CMMI level 5 Certification
  • e-learning
  • Fintech
  • gaming
  • Generative AI
  • healthcare
  • manufacturing
  • News
  • OTT
  • Portfolio
  • supply chain
  • travel and hospitality
  • Tudip's AI Hackathon
  • Voxlearn Enterprises
    •   Back
    • Android
    • iOS
    • Java
    • PHP
    • MEAN
    • Ruby
    • DotNet
    • IoT
    • Cloud
    • Testing
    • Roku
    • CMS
    • Python
The Future of Workplace Learning: AI-Powered Knowledge on Demand

The Future of Workplace Learning: AI-Powered Knowledge on Demand

June 12, 2026

A few months ago, I was sitting in a meeting with a team lead who looked genuinely frustrated. Not because…

Read More
We Did It Again: Tudip Successfully Renews Its CMMI Level 5 Certification

We Did It Again: Tudip Successfully Renews Its CMMI Level 5 Certification

June 9, 2026

Nobody around here needed a memo to know something worth celebrating had happened. The message from the CMMI Institute said…

Read More
CEO India Magazine Features Dipti Agrawal: The Woman Behind Intelligent Enterprise Solutions

CEO India Magazine Features Dipti Agrawal: The Woman Behind Intelligent Enterprise Solutions

June 9, 2026

There are moments at work that just stop you in your tracks. Not the big quarterly reviews or the product…

Read More

India

Plot No. 11/2, Phase 3, Hinjewadi Rajiv Gandhi Infotech Park, Pune, India – 411057.
info@tudip.com
+91-96-8990-0537

United States

1999 S. Bascom Ave Suite 700, Campbell CA. 95008, USA.
info@tudip.com
+1-408-216-8162

Canada

64 Caracas Road North York, Toronto Ontario M2K 1B1, Canada.
info@tudip.com

Mexico

Calle Amado Nervo #785 Interior B Colonia Ladron De Guevara 44600 Guadalajara, Jalisco, Mexico.
info@tudip.com

Singapore

77 High Street, #10-12B High Street Plaza, Singapore 179433.
info@tudip.com

Colombia

Cra. 9 # 113-53 Of. 1405 Bogotá D.C., Colombia.
info@tudip.com

UAE

Tudip Information Technologies L.L.C Office No 109, ABU HAIL BUILDING 13, Abu Hail, Dubai, UAE.
info@tudip.com

Nigeria

22 Kumasi Crescent, Wuse 2, Abuja, Nigeria.
info@tudip.com