Skip to content

Commit 221d484

Browse files
committed
docs: fix Parser saveData description
The default value for $saveData is null, and Config\View::$saveData (true by default) will be set.
1 parent 27e7de2 commit 221d484

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/outgoing/view_parser.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Several options can be passed to the ``render()`` or ``renderString()`` methods.
106106
- ``cache_name`` - the ID used to save/retrieve a cached view result; defaults to the viewpath;
107107
ignored for renderString()
108108
- ``saveData`` - true if the view data parameters should be retained for subsequent calls;
109-
default is **false**
109+
default is **true**
110110
- ``cascadeData`` - true if pseudo-variable settings should be passed on to nested
111111
substitutions; default is **true**
112112

@@ -578,7 +578,7 @@ Class Reference
578578

579579
.. php:class:: CodeIgniter\\View\\Parser
580580
581-
.. php:method:: render($view[, $options[, $saveData = false]])
581+
.. php:method:: render($view[, $options[, $saveData]])
582582
583583
:param string $view: File name of the view source
584584
:param array $options: Array of options, as key/value pairs
@@ -600,7 +600,7 @@ Class Reference
600600
Any conditional substitutions are performed first, then remaining
601601
substitutions are performed for each data pair.
602602

603-
.. php:method:: renderString($template[, $options[, $saveData = false]])
603+
.. php:method:: renderString($template[, $options[, $saveData]])
604604
605605
:param string $template: View source provided as a string
606606
:param array $options: Array of options, as key/value pairs

0 commit comments

Comments
 (0)