Video Lesson: Exercise: Create a controller action in Magento

This is premium content

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

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.

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.