From 30e2a2943a633c4d806f56706bf9a4bd7583b564 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 2 Jan 2012 21:38:45 +0000 Subject: [PATCH] Helper pour la gestion des champs, issue #0001008 --- application/views/default/helpers/Field.php | 42 +++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 application/views/default/helpers/Field.php diff --git a/application/views/default/helpers/Field.php b/application/views/default/helpers/Field.php new file mode 100644 index 00000000..49b1f838 --- /dev/null +++ b/application/views/default/helpers/Field.php @@ -0,0 +1,42 @@ + array( + 'label' => + 'fields' => array( + 0 => array( + type => {select, text, slider, autocomplete}, + value => + ) + ... multiple champs possible, 0 est le primaire ... + ) +)) + + - Défintion de la structure HTML +
+ +
+ + Texte, bouton de validation, lien pour afficher, switcher vers un autre formulaire +
+
+ */ + +Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract +{ + + /** + * Affiche la structure d'un champ en fonction de sa définition + * @param string $name + */ + public function field($name) + { + + + } + + + +} \ No newline at end of file