Skip to content

Commit

Permalink
Merge pull request #7961 from cakephp/dereuromark-patch-1
Browse files Browse the repository at this point in the history
Fix code or class name examples
  • Loading branch information
markstory authored Nov 26, 2024
2 parents a545451 + d5592dd commit 0d4bfbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/development/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ When using nesting, you need to chain them together::
['prefix' => 'Admin/MyPrefix', 'controller' => 'TodoItems', 'action' => 'create']
);

This would link to a controller with the namespace ``App\\Controller\\Admin\\MyPrefix`` and the file path
This would link to a controller with the namespace ``App\Controller\Admin\MyPrefix`` and the file path
``src/Controller/Admin/MyPrefix/TodoItemsController.php``.

.. note::
Expand Down Expand Up @@ -1579,7 +1579,7 @@ Custom Route Classes
Custom route classes allow you to extend and change how individual routes parse
requests and handle reverse routing. Route classes have a few conventions:

* Route classes are expected to be found in the ``Routing\\Route`` namespace of
* Route classes are expected to be found in the ``Routing\Route`` namespace of
your application or plugin.
* Route classes should extend :php:class:`\\Cake\\Routing\\Route\\Route`.
* Route classes should implement one or both of ``match()`` and/or ``parse()``.
Expand Down

0 comments on commit 0d4bfbb

Please sign in to comment.