Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Bonjour, je souhaiterais obtenir un formulaire de ce genre :
<form> <table> <tr> <th>Champ 1</th> <td><input type="text" name="Champ 1" /></td> </tr> </table> <fieldset> <legend>Group</legend> <table> <tr> <th>Group Champ 1</th> <td><input type="text" name="Group Champ 1" /></td> </tr> <tr> <th>Group Champ 2</th> <td><input type="text" name="Group Champ 2" /></td> </tr> </table> </fieldset> <table> <tr> <th>Champ 2</th> <td><input type="text" name="Champ 2" /></td> </tr> </table> </form>
Je n'y arrive pas et j'ai pas mal cherché sur le net. Voici mes décorateurs actuels :
Form: array( 'FormElements', array('HtmlTag', array('tag' => 'table')), 'Form', ) Element: array( 'ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'th')), array(array('row' => 'HtmlTag'), array('tag' => 'tr')), ) SubForm: array( 'FormElements', array('HtmlTag', array('tag' => 'table')), 'Fieldset', )
Dernière modification par gedeon555 (07-06-2009 14:06:57)
Hors ligne
Bon ben c'est ok, j'ai tout mis dans des displayGroup et le tag 'table' ,c'est sur chaque displayGroups que je l'ai setté. C'était tellement évident
Hors ligne