質問編集履歴

2

指摘内容の追記

2018/12/19 04:02

投稿

enigumalu
enigumalu

スコア192

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  $val = Validation::forge();
8
8
 
9
- $val->add('id','入力ID')->add_rule('required')
9
+ $val->add('id','入力ID')->add_rule('required');
10
10
 
11
11
  if (!$val->run()) {
12
12
 

1

var_dump内容追記

2018/12/19 04:02

投稿

enigumalu
enigumalu

スコア192

test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,59 @@
45
45
  ```
46
46
 
47
47
  他に設定箇所はありますでしょうか?
48
+
49
+
50
+
51
+ ```
52
+
53
+ {
54
+
55
+ ["fieldset": protected] => object(Fuel\ Core\ Fieldset) #28 (11) { ["name":protected]= > string(7)
56
+
57
+ "default" ["fieldset_tag": protected] => NULL["fieldset_parent": protected] => NULL["fieldset_children": protected] => array(0) {}["fields": protected] => array(1) {
58
+
59
+ [id"] => object(Fuel\ Core\ Fieldset_Field) #29 (12) { ["fieldset":protected]= > * RECURSION * ["name": protected] => string(12)
60
+
61
+ "id" ["basename": protected] => string(12)
62
+
63
+ "id" ["type": protected] => string(4)
64
+
65
+ "text" ["label": protected] => string(23)
66
+
67
+ "入力ID" ["value": protected] => NULL["description": protected] => string(0)
68
+
69
+ "" ["rules": protected] => array(1) {
70
+
71
+ [0] => array(2) {
72
+
73
+ [0] => string(8)
74
+
75
+ "required" [1] => array(0) {}
76
+
77
+ }
78
+
79
+ }["attributes": protected] => array(3) {
80
+
81
+ ["type"] => string(4)
82
+
83
+ "text" ["label"] => string(23)
84
+
85
+ "入力ID" ["required"] => string(8)
86
+
87
+ "required"
88
+
89
+ }["options": protected] => array(0) {}["template": protected] => NULL["error_messages": protected] => array(0) {}
90
+
91
+ }
92
+
93
+ }["validation": protected] => * RECURSION * ["form": protected] => NULL["config": protected] => array(0) {}["disabled": protected] => array(0) {}["tabular_form_model": protected] => NULL["tabular_form_relation": protected] => NULL
94
+
95
+ }["input": protected] => array(0) {}["validated": protected] => array(0) {}["errors": protected] => array(0) {}["callables": protected] => array(1) {
96
+
97
+ [0] => * RECURSION *
98
+
99
+ }["global_input_fallback": protected] => bool(true)["error_messages": protected] => array(0) {}
100
+
101
+ }
102
+
103
+ ```