Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Magento2 Major Directories
Ignoring frontend logic the important directories I can see so far are:
- app/code/Magento - Holds Magento implementation modules, e.g Customer, Cart, Checkout
- internal/Magento/Framework - Magento Framework e.g. Session Handling, SQL Setup, Cache
- pub/errors - Can move the local.xml.sample to local.xml so you don't have to keep looking in report directory!!
- vendor - 3rd Party libraries loaded via composer
- app/<module_vendor> - 3rd Party magento extensions
- app/etc/env.php - db credentials, replaces local.xml?
- var/cache, var/generation & var/page_cache - Delete these 3 directories to fully flush cache
- dev/tests - Unit Tests
To create a module start off by just adding it under app/code/<Vendor>/<Extn>. You can move it to composer later (it should live in vendor/<Vendor>/<Extn>
@wojtekn

This comment has been minimized.

Copy link

commented Jan 11, 2015

Karen, you may also add var/generation to the list of directories needed to flush cache.

@wsakaren

This comment has been minimized.

Copy link
Owner Author

commented Jan 11, 2015

Added, thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.