Skip to content

Kirby 3.5.7.1

(:num)

Matches any number

Example

/site/config/config.php
return [
  'routes' => [
    [
      'pattern' => '/projects/(:num)',
      'action'  => function ($num) {
        // react to requests
      }
    ]
  ]
];