From 3c895750037ca8686ab36bb318fa6471046800ce Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Thu, 8 Mar 2012 15:05:34 +0000 Subject: [PATCH] optimisation du helper --- application/modules/frontend/views/helpers/Field.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/application/modules/frontend/views/helpers/Field.php b/application/modules/frontend/views/helpers/Field.php index 9d748c0a..6572714f 100644 --- a/application/modules/frontend/views/helpers/Field.php +++ b/application/modules/frontend/views/helpers/Field.php @@ -63,6 +63,11 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract $field['label'], $this->radioHTML($name, $field)); break; + case 'file': + $html.= $this->structureHTML( + $field['label'], + $this->fileuploadHtml($name, $field)); + break; } $html.= ''; } @@ -212,6 +217,7 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract $type = 'Cj'; break; } + /* Modifier les données */ $return = ''; $return .= 'Valider'; return ($return); @@ -226,6 +232,12 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract return ($return); } + private function fileuploadHtml($name, $field) + { + $return = ' '; + return ($return); + } + /* Radios */ private function radioHTML($name, $field, $item) {