質問編集履歴
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,39 +1,17 @@
|
|
1
1
|
ZF2で以下のコードを使っています。
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
```lang-php
|
6
|
-
|
7
3
|
$this->add(array(
|
8
|
-
|
9
|
-
|
4
|
+
'type' => 'Zend\Form\Element\Select',
|
10
|
-
|
11
|
-
|
5
|
+
'name' => 'Ryu',
|
12
|
-
|
13
|
-
|
6
|
+
'registerInArrayValidator' => false,
|
14
|
-
|
15
|
-
|
7
|
+
'attributes' => array(
|
16
|
-
|
17
|
-
|
8
|
+
'id' => 'Ryu',
|
18
|
-
|
19
|
-
|
9
|
+
'options' => array(
|
20
|
-
|
21
|
-
|
10
|
+
//'null'=>'[Select Ryu]',
|
22
|
-
|
23
|
-
|
11
|
+
),
|
24
|
-
|
25
|
-
|
12
|
+
),
|
26
|
-
|
27
|
-
)
|
28
|
-
|
29
|
-
);
|
13
|
+
));
|
30
|
-
|
31
|
-
```
|
32
|
-
|
33
|
-
|
34
14
|
|
35
15
|
Ryuのフィールドに、javaScriptを使って値を設定しています。
|
36
|
-
|
37
16
|
ですが、入力の内容のValidateを行おうとすると、”haystack option is mandatory”という予期しないエラーが表示されます。
|
38
|
-
|
39
17
|
どうすれば解決できるでしょうか?
|