Skip to content

Commit 57e3a13

Browse files
committed
docs: replace echo with return
return is recommended.
1 parent de63e0c commit 57e3a13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

user_guide_src/source/installation/upgrade_validations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Upgrade Guide
2929
- ``$this->load->helper(array('form', 'url'));`` to ``helper(['form', 'url']);``
3030
- remove the line ``$this->load->library('form_validation');``
3131
- ``if ($this->form_validation->run() == FALSE)`` to ``if (! $this->validate([]))``
32-
- ``$this->load->view('myform');`` to ``echo view('myform', ['validation' => $this->validator,]);``
32+
- ``$this->load->view('myform');`` to ``return view('myform', ['validation' => $this->validator,]);``
3333

3434
3. You have to change the validation rules. The new syntax is to set the rules as array in the controller:
3535

0 commit comments

Comments
 (0)