[英]Zend_Form from ini, set multiOptions with string values
我正在嘗試使用Zend_Config_Ini為Zend_Form配置表單,並希望為.ini文件中的select元素設置選項。
這對於具有單個字符串值的選項很好用,即
user.exampleform.elements.subject.options.multiOptions.example = "Example Label"
但是,我不知道如何使用字符串作為值,即“示例選擇”
我正在使用Zend Framework 1.9.3PL1。
查看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"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.