Skip to content

Commit 0aa4aad

Browse files
authored
Merge pull request #5468 from kenjis/fix-docs-view-function
docs: fix view() $options explanation
2 parents 2bee762 + eaab880 commit 0aa4aad

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

user_guide_src/source/general/common_functions.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,12 @@ Service Accessors
179179
a convenience method that can be used in Controllers,
180180
libraries, and routed closures.
181181

182-
Currently, only one option is available for use within the `$options` array, `saveData` which specifies
183-
that data will persistent between multiple calls to `view()` within the same request. By default, the
184-
data for that view is forgotten after displaying that single view file.
182+
Currently, only two options are available for use within the ``$options`` array:
185183

186-
The $option array is provided primarily to facilitate third-party integrations with
184+
- ``saveData`` specifies that data will persistent between multiple calls to ``view()`` within the same request. If you do not want the data to be persisted, specify false.
185+
- ``debug`` can be set to false to disable the addition of debug code for :ref:`Debug Toolbar <the-debug-toolbar>`.
186+
187+
The ``$option`` array is provided primarily to facilitate third-party integrations with
187188
libraries like Twig.
188189

189190
Example::

user_guide_src/source/testing/debugging.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ This provides a backtrace to the current execution point, with Kint's own unique
4545

4646
For more information, see `Kint's page <https://kint-php.github.io/kint//>`_.
4747

48+
.. _the-debug-toolbar:
49+
4850
=================
4951
The Debug Toolbar
5052
=================

0 commit comments

Comments
 (0)