Modules are extensions that provide a controller.
A module consists of at least two files:
module.yml
controller.php
There are also two directories that can be used:
templates/
public/
Modules can be mounted with their base name or an alias. The first segment of the page path is then mapped to the mountpoint names.
Example
Our website defines this site.yml file:
site.yml
routes: - { module: vendor/module } # auto-generated mountpoint 'module' - { module: vendor/another-module, alias: foo } # aliased mountpoint 'foo'
The module controllers can then be accessed over the page path as follows:
module
vendor/module
foo
vendor/another-module
There was an error while loading. Please reload this page.