We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39de3dd commit 02433dcCopy full SHA for 02433dc
docs/en/development/attribute-routing.md
@@ -25,6 +25,8 @@ your controller classes. Enable it in your **config/routes.php**:
25
26
```php
27
// config/routes.php
28
+use Cake\Routing\Route\DashedRoute;
29
+use Cake\Routing\RouteBuilder;
30
31
/** @var \Cake\Routing\RouteBuilder $routes */
32
$routes->connectAttributes();
@@ -399,7 +401,7 @@ Both produce the same routes:
399
401
| HTTP Method | URL | Action |
400
402
|---|---|---|
403
| GET | `/articles` | `index` |
-| GET | `/articles/:id` | `view` |
404
+| GET | `/articles/{id}` | `view` |
405
406
`#[Resource]` parameters:
407
0 commit comments