Skip to content

Commit 85e4de5

Browse files
authored
Merge pull request #5484 from kenjis/fix-docs-common_functions.rst
docs: fix view() in common_functions.rst
2 parents 1a3f0f1 + cc901db commit 85e4de5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

user_guide_src/source/general/common_functions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ Service Accessors
179179
a convenience method that can be used in Controllers,
180180
libraries, and routed closures.
181181

182-
Currently, only two options are available for use within the ``$options`` array:
182+
Currently, these options are available for use within the ``$options`` array:
183183

184184
- ``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+
- ``cache`` specifies the number of seconds to cache the view for. See :ref:`caching-views` for the details.
185186
- ``debug`` can be set to false to disable the addition of debug code for :ref:`Debug Toolbar <the-debug-toolbar>`.
186187

187188
The ``$option`` array is provided primarily to facilitate third-party integrations with

user_guide_src/source/outgoing/views.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ example, you could load the **blog_view.php** file from **example/blog/Views** b
113113

114114
echo view('Example\Blog\Views\blog_view');
115115

116+
.. _caching-views:
117+
116118
Caching Views
117119
=============
118120

0 commit comments

Comments
 (0)