Create a New Web Page

Learn how to create a new web page in the Symfony application.

Now, let’s create a new web page in our Symfony application. We’ll use this page to test our CI/CD deployment pipelines.

Add code to the file

First, we need to create a new PHP controller class. In the widget below, open the src/Controller/NewPageController.php file created for you. Copy and paste the code below to this file.

Get hands-on with 1200+ tech skills courses.