index.php
A index is UI that is unique to a route.
For example, to create your first page, add a index.php
file or edit the existing one inside the app directory and go to http://localhost:3000
Copy and paste the code below to your index.php
file. This code will display a simple "Hello, World!" message on the screen.
<?php
echo "Hello, World!";
Nested Routes
To create a nested route, you can nest folders inside each other. For example, you can add a new /dashboard/settings
route by nesting two new folders in the app directory.
The /dashboard/settings
route is composed of three segments:
/
(Root segment)dashboard
(Segment)settings
(Leaf segment)