Exercise: Create a controller action in Magento
Learn how to create a Magento 2 controller action for the blog post detail view.
Lesson Content
Itβs time for you to create a new controller. This new endpoint will use the same blog route and respond to requests made to the URL: /blog/post/detail.
Like the Index controller, this endpoint should just respond with the text:
Blog post detail
When you have finished, check the Source Code tab for the solution.
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.