1

Zend_Config_Ini を使用して Zend_Form のフォームを構成しようとしています。.ini ファイルで select 要素のオプションを設定したいと考えています。

これは、単一の文字列値を持つオプション、つまり、

user.exampleform.elements.subject.options.multiOptions.example = "Example Label" 

ただし、値に文字列を使用する方法、つまり「例の選択」を理解できません

Zend Framework 1.9.3PL1 を使用しています。

4

1 に答える 1

1

のコードを見てZend_Form_Element_Multi::addMultiOptions

user.exampleform.elements.subject.options.multiOptions.example.key = "Example Choice"
user.exampleform.elements.subject.options.multiOptions.example.value = "Example Label"
于 2009-11-10T11:52:32.430 に答える