-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[fr] Follows #5019 #5082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fr] Follows #5019 #5082
Conversation
| ``scope()``:: | ||
|
|
||
| // Dans config/routes.php | ||
| use Cake\Routing\Route\DashedRoute; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Route
fr/development/routing.rst
Outdated
|
|
||
| $routes->connect( | ||
| '/cooks/:action/*', ['controller' => 'Users'] | ||
| '/cuisiniers/:action/*', ['controller' => 'Users'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si tu changes cooks par cuisiniers il faut le faire ici aussi...
| au controller users. L'action appelée dépendra de la valeur du paramètre | ||
| au ``UsersController``. L'action appelée dépendra de la valeur du paramètre | ||
| ``:action``. En utilisant :ref:`route-elements`, vous pouvez créer des routes | ||
| variables, qui acceptent les entrées utilisateur ou les variables. La route |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Et la... le mieux et peut être de garder l'URL en anglais...
| * PUT | ||
| * PATCH | ||
| * DELETE | ||
| * OPTIONS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retournent
| // Crée un builder avec une classe de Route différente. | ||
| $routes->scope('/', function ($routes) { | ||
| $routes->routeClass(DashedRoute::class); | ||
| $routes->connect('/:controller/:id', ['action' => 'view']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Petit oubli
|
@antograssiot C'est corrigé. Pour la traduction de l'URL, ça me paraissait bien de traduire |
|
👍 |
No description provided.