Form Yöntem getMaxFileSize tarafından yakalanan Zend Framework 1,7-1,8 durum yok

0 Cevap php

Ne neden bu hata mesajı "Exception caught by form Method getMaxFileSize does not exist" 1.8 ya da daha fazla 1.7 sürümünden geçtikten sonra

güncelleme: kodun ürettiği Sayı

        ->addElement('file', 'avatar', array(
              'required'    => false
            , 'label'       => 'Upload File:'
            , 'destination' => '/data/avatar'
            , 'filters'     => array()
            , 'validators'  => array(
                  array('Extension', false, 'jpg,png,gif')
                , array('Size', false, 102400)
                , array('Count', false, 1)
            )
            , 'decorators' => $this->groupElementDecorators
        ))

update2: group decorators is just an array

$groupElementDecorators = array( 'ViewHelper', 'FormElements', 'File', 'Errors');

0 Cevap