We cover what a module is and what we'll build in this course.
Modules in Craft are a way to extend a Yii application. Yii is the PHP framework on which Craft is built. So, modules aren’t a Craft convention, they’re a Yii convention. They’re meant to be used for self-contained software that has components to support the main application.
Plugins in Craft are also Yii modules but have a few extra capabilities in Craft. You can check out the plugin development courses here on CraftQuest for more information.
In Craft, the generally accepted use of modules is for mission-critical functionality that shouldn’t be uninstalled like you would a plugin. The modules are typically part of the project files, meaning they’re not installed via Composer or other package manager. They are part of your project the same way a set of Twig templates are.
For this course we are going to create a module to do something very simple: manipulate the Craft CMS control panel so it has an extra nav item in it.
Follow along with the full transcript
Search every word, click any line to jump to that moment, and read along as you watch — a CraftQuest Premium feature.
Sign up for Premium