提交时Zend Multiselect空数组

时间:2012-11-05 15:14:18

标签: arrays forms zend-framework select multi-select

当我在本地主机上提交表格时,一切正常。

当我var_dump提交数据时,它只获取

    Array ( [nameBg] => PVC
        [orderField] => 50 
        **[option] => Array** 
            [status] => 1 [id] => 10 
            [parentId] => 1 
            [page] => 1 
            [of] => orderField 
            [od] => DESC 
            [save] => Submit 
        )           

并且没有更多..选项数组是空的:(这可能是因为某些服务器设置?

这就是我的多选元素的样子。

    $this->addElement ( 'multiselect', 'option', array (
        'label' => $this->translate ( 'Опции' ),
        'decorators' => array (
                'ViewHelper' 
        ),
        'description' => $this->translate ( 'Add options' ),
        'multiOptions' => $catys,
        'validators' => array (
                array (
                        'GreaterThan',
                        true,
                        array (
                                0,
                                'messages' => array (
                                        Zend_Validate_GreaterThan::NOT_GREATER => $this->translate ( 'Please select an option.' ) 
                                ) 
                        ) 
                ) 
        ),
        'onclick' => ('selectMultiple(this);') 
) );

0 个答案:

没有答案