0
我有一個問題涉及到zend_form的setMultiFile方法。Zend_Form setMultiFile()
我已經有了這樣一種形式:
$foto->setLabel('Foto:');
$foto->addValidator('IsImage', true);
$foto->addValidator('Count', true, 12);
$foto->addValidator('Extension', true, 'gif,png,jpg');
$foto->setDestination(PUBLIC_PATH.'/upload/img/');
$foto->addFilter('Rename', array(
'target' => PUBLIC_PATH.'/upload/img/',
'overwrite' => true
));
$foto->setMultiFile(12);
$foto->addDecorators(array(
array('Description',array('tag'=>'','escape'=>false))
));
而且這一切工作......但現在我需要遍歷每個元素設置說明和裝飾......有什麼建議?感謝所有會回覆此問題的人,我對此感到瘋狂......
我的意思setMultiFile()方法創建的每個元素...我需要向用戶顯示當前圖像的預覽每個輸入附近文件...我需要迭代他們1 1 bcuz我想調整每個圖像使用phpThumb ... – Cristian 2010-06-09 12:15:14