Autoplay
Autocomplete
Previous lesson
Complete and Continue
Magento 2 Coding Kickstart
Introduction
Welcome! Prerequisites, focus & outcome
Preview
2:38
Application & Environment Setup
Directory structure of a Magento project
6:50
All about Magento application modes
2:40
Enabling developer mode for Magento development
1:11
Set up Composer auth credentials for the Magento Marketplace
2:24
Install & deploy Magento sample data
1:45
About the Magento config, environment & version control
1:52
Set up additional Magento development tools
1:00
Caching
Enabling & disabling cache types in Magento
1:53
Cleaning & flushing Magento caches
2:03
Enable automatic Magento cache clearing for development
1:55
Module Basics
Magento local module directory naming conventions
Preview
2:28
Magento third-party module directory naming conventions
1:58
Magento module registration file
Preview
3:32
Magento module definition file
4:23
Enable a Magento module
3:18
Exercise: Create your own custom Magento module
Exercise: Install a third-party Magento module
Create a composer.json file for your module
3:44
Routing
Built-in Magento routers
2:49
The anatomy of a Magento URL
3:45
Define a new custom route in Magento
2:36
Create a controller action in Magento
Preview
4:23
Exercise: Create a controller action for the blog post detail view
Reserved keywords in Magento controller actions
2:15
Dependency Injection
Dependency injection & Magento’s Object Manager
2:21
Why the new keyword can’t be used to create objects in Magento
1:48
Create a new object in Magento using Object Manager
2:25
Create an object with dependency injection using a singleton
3:01
About generated code in Magento
2:51
How Magento maps interface implementations with XML
4:08
Interfaces & Factories
What are service contracts?
1:58
Create an object with dependency injection using an interface
1:58
Create an object with dependency injection using a factory
2:57
Exercise: Create a page response for the blog post list view
Redirect a Magento controller action with a factory
2:21
Forward a Magento controller action with a factory
3:16
Views
Magento page layouts & containers
4:04
Magento core layouts & blocks
2:54
Custom Magento layout handles
1:46
Create a custom layout XML file
2:03
Create a new template file in Magento
2:35
Display a Magento template in a block
3:11
Challenge: Create a template & render it in a block with layout XML
Review: Create a template & render it in a block with layout XML
5:00
Change the page layout of a Magento view
2:56
Locate block templates in Magento
4:24
Locate block nodes in Magento layout XML files
1:46
Exercise: Locate a template & related block node in layout XML
Move Magento blocks on a page
3:14
Remove or control the display of a Magento block
1:59
Override & translate Magento template text with i18n
4:30
Override an existing Magento block template
Preview
3:24
Render & wrap Magento children blocks with containers
2:21
Exercise: Magento module cleanup
Update templates with placeholder data
6:25
Database Models
About Magento’s declarative schema
1:56
Create a new database table
7:49
Automatically remove database properties on updates
2:12
Magento Model vs ResourceModel vs Collection
1:37
Create a model
1:24
Create a resource model
4:48
Create a collection
3:15
Repositories & Data Interfaces
What is a service contract?
2:53
Create a data transfer object (DTO) interface
6:53
Update a model to implement a DTO interface
2:37
Define a model preference for a DTO interface
1:33
Create a repository interface
6:37
Create a repository
2:28
Saving & Querying Data
Load data with a resource model
4:59
Save data with a resource model
1:35
Delete data with a resource model
1:57
Write a setup patch data script
3:31
Save data using a repository
2:43
Execute setup patch data scripts
2:33
Exercise: Write another setup data patch script
Create a ViewModel
4:21
Pass data to a template using a ViewModel
Preview
4:56
Exercise: Create a new function within a ViewModel
Load data using a collection
3:27
Load data using a repository
4:14
Escape template data to prevent XSS security vulnerabilities
4:07
Expose a REST API endpoint using a repository
7:50
Design Patterns
Create and dispatch an event
3:52
Listen to an event with an observer
7:06
What is a plugin or interceptor?
3:15
Use a before plugin to modify function parameters
6:16
Use an after plugin to modify the result of a function
6:37
Use an around plugin to silence a function
3:46
Override a class using a preference
4:34
Conclusion
Downloadable archive of modules
Course feedback & certificate for the Magento 2 Coding Kickstart course
Execute setup patch data scripts
Lesson content locked
If you're already enrolled,
log in to access this lesson
.
Enroll in Course to Unlock