The Magento folder structure

The Magento folder structure is slightly different from other MVC applications. Let's take a look at the directory tree, and each directory and its functions:

  • app: This folder is the core of Magento and is subdivided into three important directories:
    • code: This contains all our application code divided into three code pools, namely core, community, and local
    • design: This contains all the templates and layouts for our application
    • locale: This contains all the translation and e-mail template files used for the store
  • js: This contains all the JavaScript libraries that are used in Magento
  • media: This contains all the images and media files for our products and CMS pages, as well the product image cache
  • lib: This contains all ...

Get Magento PHP Developer's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.