Skip to content

Commit 53be91e

Browse files
committed
Add docs for cakephp/cakephp#17457
1 parent 8de4e35 commit 53be91e

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

en/appendices/5-1-upgrade-guide.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@ Validation
4646

4747
- ``Validation::enum()`` and ``Validator::enum()`` were added. These validation
4848
methods simplify validating backed enum values.
49+
50+
View
51+
----
52+
53+
- View cells now emit events around their actions ``Cell.beforeAction`` and
54+
``Cell.afterAction``.

en/views.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Another example, using if/elseif/else. Notice the colons:
119119
120120
If you'd prefer to use a templating language like
121121
`Twig <https://twig.symfony.com>`_, checkout the `CakePHP Twig Plugin
122-
<https://github.com/cakephp/twig-view>`__
122+
<https://github.com/cakephp/twig-view>`__
123123

124124
Template files are stored in **templates/**, in a folder named after the
125125
controller that uses the files, and named after the action it corresponds to.

en/views/cells.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,13 @@ Loading a specific Helper just for a specific cell can be done via the following
298298
}
299299
}
300300

301+
302+
Cell Events
303+
===========
304+
305+
Cells trigger the following events around the cell action:
306+
307+
* ``Cell.beforeAction``
308+
* ``Cell.afterAction``
309+
310+
.. versionadded:: 5.1.0

0 commit comments

Comments
 (0)