The path: ‘/examp’ begin with 2 space catheters. Here we are defining the end point (http://localhost/examp [ I am using ‘localhost’ for development])
5. Create controller:- for creating controller first we need to create an ‘src’ folder inside example folder inside src folder create a ‘Controller’ folder and inside it create ExampleController.php
the controller full path will be like this ‘modules/example/src/Controller/ExampleController.php’
Example 1 : ‘<space><space>–<space>example/example-css’ (insted of example-css you can give any name but you need to specify same in theme libraries yml file)
Example 2 : ‘<space><space>header:<space>Header block’ here after ‘:<space>’ space is not mandatory
Default theme implementation to display a single page
page.html.twig
XHTML
1
2
3
4
5
<div id="head">{{page.header}}</div>
<div id="content">{{page.content}}</div>
<div id="footer">{{page.footer}}</div>
You can see a screenshot.png file in the theme folder (inside example folder) this image is used to display the theme image in admin panel
You can write your own css file and js file, and also you can create your own favicon.ico, logo.png that are i am not adding here .
*Note:- If your file changes (eg:-css and js or other fildes) are not reflecting in browser do clear cache (login to your admin area configuration->Development->Performance->Clear all caches)