Skip to content

Commit 799b505

Browse files
committed
docs: add note on view() and View Renderer relationship
1 parent 898965a commit 799b505

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

user_guide_src/source/general/common_functions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ Service Accessors
180180
:rtype: string
181181

182182
Grabs the current RendererInterface-compatible class
183+
(:doc:`View <../outgoing/view_renderer>` class by default)
183184
and tells it to render the specified view. Simply provides
184185
a convenience method that can be used in Controllers,
185186
libraries, and routed closures.

user_guide_src/source/outgoing/views.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Where *name* is the name of your view file.
4747

4848
.. important:: If the file extension is omitted, then the views are expected to end with the **.php** extension.
4949

50+
.. note:: The ``view()`` function uses :doc:`view_renderer` internally.
51+
5052
Now, create a file called **Blog.php** in the **app/Controllers** directory,
5153
and put this in it:
5254

0 commit comments

Comments
 (0)