Video Lesson: Enable a module in Magento

Enable a module in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Enable a module in Magento

Learn how to enable a Magento 2 module using bin/magento module:enable and setup:upgrade commands.

Lesson Content

Even though we’ve written our Magento module, it’s not enabled by default! So let’s go ahead and enable it now.

Before we do though, let’s open up our app/etc/config.php file first.

This is the file that Magento uses that controls which modules are enabled or disabled. A 1 obviously means it’s enabled, and a 0 means it’s disabled.

You will never really want to modify this file though, as the order of modules in this file is automagically determined by Magento. We’ll learn a little more about why & how this happens later, but for now just know that when you wish to enable or disable a...

Premium content

Enroll to unlock the full content and all course materials.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.