From 9865c4102384f6343985f5fe9fd70ffc3ff71e1c Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 9 Nov 2018 19:06:38 +0700 Subject: [PATCH 1/3] remove form view in application/View/ and form helper usage in create new items tutorial --- application/Views/form.php | 9 --------- user_guide_src/source/tutorial/create_news_items.rst | 10 ++-------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 application/Views/form.php diff --git a/application/Views/form.php b/application/Views/form.php deleted file mode 100644 index 5f7ad8ff97e4..000000000000 --- a/application/Views/form.php +++ /dev/null @@ -1,9 +0,0 @@ -


- - -
- - - - -
\ No newline at end of file diff --git a/user_guide_src/source/tutorial/create_news_items.rst b/user_guide_src/source/tutorial/create_news_items.rst index c9d803204174..e9635a15bd08 100644 --- a/user_guide_src/source/tutorial/create_news_items.rst +++ b/user_guide_src/source/tutorial/create_news_items.rst @@ -22,7 +22,7 @@ the slug from our title in the model. Create the new view at listErrors(); ?> - +

@@ -34,13 +34,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 ``\Config\Services::validation()->listErrors()`` function. - -The first function is provided by the :doc:`form -helper <../helpers/form_helper>` and renders the form element and -adds extra functionality, like adding a hidden :doc:`CSRF prevention -field <../libraries/security>`. The latter is used to report +There are only one things here that probably look unfamiliar to you: the ``\Config\Services::validation()->listErrors()`` function. It is used to report errors related to form validation. Go back to your news controller. You're going to do two things here, From fda25fc6da69e895d1bf7ea04720a165698268a6 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 9 Nov 2018 19:09:06 +0700 Subject: [PATCH 2/3] s/are/is --- user_guide_src/source/tutorial/create_news_items.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/tutorial/create_news_items.rst b/user_guide_src/source/tutorial/create_news_items.rst index e9635a15bd08..1543ddc57657 100644 --- a/user_guide_src/source/tutorial/create_news_items.rst +++ b/user_guide_src/source/tutorial/create_news_items.rst @@ -34,7 +34,7 @@ the slug from our title in the model. Create the new view at -There are only one things here that probably look unfamiliar to you: the ``\Config\Services::validation()->listErrors()`` function. It is used to report +There is only one things here that probably look unfamiliar to you: the ``\Config\Services::validation()->listErrors()`` function. It is used to report errors related to form validation. Go back to your news controller. You're going to do two things here, From e8ee42043fa4a70d64c7ff16f04ec7e966fad813 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 9 Nov 2018 19:09:28 +0700 Subject: [PATCH 3/3] singular fix --- user_guide_src/source/tutorial/create_news_items.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/tutorial/create_news_items.rst b/user_guide_src/source/tutorial/create_news_items.rst index 1543ddc57657..2a296ff75380 100644 --- a/user_guide_src/source/tutorial/create_news_items.rst +++ b/user_guide_src/source/tutorial/create_news_items.rst @@ -34,7 +34,7 @@ the slug from our title in the model. Create the new view at -There is only one things here that probably look unfamiliar to you: the ``\Config\Services::validation()->listErrors()`` function. It is used to report +There is only one thing here that probably look unfamiliar to you: the ``\Config\Services::validation()->listErrors()`` function. It is used to report errors related to form validation. Go back to your news controller. You're going to do two things here,