File tree Expand file tree Collapse file tree
user_guide_src/source/tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ you haven't written any information to the database yet. In this section
77you'll expand your news controller and model created earlier to include
88this functionality.
99
10- .. note :: This section of the tutorial cannot be completed as certain
11- portions of the framework, like the form helper and the validation
12- library have not been completed yet.
13-
1410Create a form
1511-------------
1612
@@ -24,7 +20,7 @@ the slug from our title in the model. Create the new view at
2420
2521 <h2><?= esc($title); ?></h2>
2622
27- <?= validation_errors (); ?>
23+ <?= \Config\Services::validation()->listErrors (); ?>
2824
2925 <?= form_open('news/create'); ?>
3026
@@ -39,7 +35,7 @@ the slug from our title in the model. Create the new view at
3935 </form>
4036
4137There are only two things here that probably look unfamiliar to you: the
42- ``form_open() `` function and the ``validation_errors () `` function.
38+ ``form_open() `` function and the ``\Config\Services::validation()->listErrors () `` function.
4339
4440The first function is provided by the :doc: `form
4541helper <../helpers/form_helper>` and renders the form element and
You can’t perform that action at this time.
0 commit comments