Create a New Page

Create a page that returns json with one parameter.

Who is this video for?

  • Developers

Steps to add a page

  • Create a module
  • Add a routes.xml file
  • Add a controller (action) file

Steps to create a module

  • Create the module folder
  • Create the etc/module.xml file
  • Create the registration.php file
  • Run the bin/magento setup:upgrade script to install the new module
  • Check that the module is working

Video content

Useful resources

Frontend developer guide

On this page