June 17, 2015

Magento folder structure 1.9.X

Magento folder structure is different from General MVC framework.
Let take a look at the directory tree, and each folder and its usefulness:

 app: app folder is the core/heart of Magento Application and is further divided into three main folders:
code: code folder contains all our application code divided into three code pools such as core, community, and local

design: Design folder contains all the templates and layouts files for magento application

locale: This contains all the translation and e-mail template files that are used in magento application

• js: This contains all the JavaScript libraries that are used in Magento along with the prototype, varien js and any other js files.

• media: This contains all the images and media files for our categories, products and
CMS pages.

• lib: Library folder contains all the third-party libraries used in Magento such as Zend and PEAR, and other custom libraries developed by Magento, which
reside under the Varien and Mage directories

• skin: Skin directory contains all CSS files, images, and JavaScript files used by the corresponding theme.
Both the admin theme and front end theme css data reside under it.

• var: Var directory contains temporary data such as cache files, index lock files,
sessions, import/export files.
If you are using the Enterprise edition, then it holds the full page cache folders.