Skip to content

Commit 7b45a2b

Browse files
committed
docs: improve description
The views in "Views" page is pure PHP views. It is different from Parser Template views. So I removed the link to "Views" page.
1 parent 3127784 commit 7b45a2b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

user_guide_src/source/outgoing/view_parser.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@ like this:
9090
.. literalinclude:: view_parser/003.php
9191

9292
View parameters are passed to ``setData()`` as an associative
93-
array of data to be replaced in the template. In the above example, the
94-
template would contain two variables: ``{blog_title}`` and ``{blog_heading}``
95-
The first parameter to ``render()`` contains the name of the :doc:`view
96-
file </outgoing/views>`, Where *blog_template* is the name of your view file.
93+
array of data to be replaced in the template.
94+
95+
In the above example, the template would contain two variables: ``{blog_title}`` and ``{blog_heading}``
96+
97+
The first parameter to ``render()`` contains the name of the template, where
98+
``blog_template``` is the name of your view template file.
9799

98100
.. important:: If the file extension is omitted, then the views are expected to end with the .php extension.
99101

0 commit comments

Comments
 (0)