From c8c4d8e1c123f8181a2bb629d76cee717e7f81d8 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 24 Sep 2018 21:50:45 +0700 Subject: [PATCH 1/2] doc fix: replace validation_errors() function with \Config\Services::validation()->listErrors() --- user_guide_src/source/tutorial/create_news_items.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/tutorial/create_news_items.rst b/user_guide_src/source/tutorial/create_news_items.rst index 398444e84c0a..2844906b3ac3 100644 --- a/user_guide_src/source/tutorial/create_news_items.rst +++ b/user_guide_src/source/tutorial/create_news_items.rst @@ -24,7 +24,7 @@ the slug from our title in the model. Create the new view at

- + listErrors(); ?> @@ -39,7 +39,7 @@ the slug from our title in the model. Create the new view at 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 From 604bacfc3cafbfbe283c540cffcd720f9ef9c34d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 25 Sep 2018 21:32:29 +0700 Subject: [PATCH 2/2] remove note incomplete helper and validation --- user_guide_src/source/tutorial/create_news_items.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/user_guide_src/source/tutorial/create_news_items.rst b/user_guide_src/source/tutorial/create_news_items.rst index 2844906b3ac3..605f5073fc5a 100644 --- a/user_guide_src/source/tutorial/create_news_items.rst +++ b/user_guide_src/source/tutorial/create_news_items.rst @@ -7,10 +7,6 @@ you haven't written any information to the database yet. In this section you'll expand your news controller and model created earlier to include this functionality. -.. note:: This section of the tutorial cannot be completed as certain - portions of the framework, like the form helper and the validation - library have not been completed yet. - Create a form -------------