Sorry to bother again! Out of interest how do the file element decorator work
as opposed to the standard form elements. I see that you can't use the
'File' and 'ViewHelper' decorators together (or at least I can't), so I have
to set up two different default decorators for elements. One with the
'ViewHelper' and one with the 'File' decorator.
protected $elementDecorators = array(
'ViewHelper',
'Errors',
'Description',
array(array('data' => 'HtmlTag'), array('tag' => 'dd', 'class' =>
'element')),
array('Label', array('tag' => 'dt', 'requiredSuffix' => ': *',
'optionalSuffix' => ':')),
);
protected $elementFileDecorators = array(
'File',
'Errors',
'Description',
array(array('data' => 'HtmlTag'), array('tag' => 'dd', 'class' =>
'element')),
array('Label', array('tag' => 'dt', 'requiredSuffix' => ': *',
'optionalSuffix' => ':')),
);
I can't remove the ViewHelper and add the File decorator as they are then in
the wrong order and don't render properly. I don't really want to double up
the helper creation.
The only way I can see to get around it is to merge two arrays (one holding
the basic decorators and one holding the viewHelper and one holding the File
decorator. Seems a bit over the top as far as I'm concerned!
Thanks
Simon
-----
Simon
http://www.ajb007.co.uk/
--
View this message in context:
http://www.nabble.com/Zend_File_Transfer_Adapter_Abstract-Error-tp20438055p20440003.html
Sent from the Zend Framework mailing list archive at Nabble.com.