Skip to content

Commit

Permalink
doc fix: replace validation_errors() function with \Config\Services::…
Browse files Browse the repository at this point in the history
…validation()->listErrors()
  • Loading branch information
samsonasik committed Sep 24, 2018
1 parent 229e440 commit b202086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user_guide_src/source/tutorial/create_news_items.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ the slug from our title in the model. Create the new view at

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

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

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

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

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

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

0 comments on commit b202086

Please sign in to comment.