Skip to content

Commit c8c4d8e

Browse files
committed
doc fix: replace validation_errors() function with \Config\Services::validation()->listErrors()
1 parent 8ca894a commit c8c4d8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/tutorial/create_news_items.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ the slug from our title in the model. Create the new view at
2424

2525
<h2><?= esc($title); ?></h2>
2626

27-
<?= validation_errors(); ?>
27+
<?= \Config\Services::validation()->listErrors(); ?>
2828

2929
<?= form_open('news/create'); ?>
3030

@@ -39,7 +39,7 @@ the slug from our title in the model. Create the new view at
3939
</form>
4040

4141
There are only two things here that probably look unfamiliar to you: the
42-
``form_open()`` function and the ``validation_errors()`` function.
42+
``form_open()`` function and the ``\Config\Services::validation()->listErrors()`` function.
4343

4444
The first function is provided by the :doc:`form
4545
helper <../helpers/form_helper>` and renders the form element and

0 commit comments

Comments
 (0)