Bonjour,
Je suis débutant dans zend, et les problèmes commencent!!!
J essaie d'ajouter du style css à mon formulaire mais je n'y arrive pas.
Je veux séparé les MultiChekbox par type et les mettre cote à cote.
voici mon code source formulaire :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
 
class Application_Form_Inscription extends Zend_Form
{
 
    public function init()
    {
 
    	$decorators = array(
    			'ViewHelper',
    			'Errors',
    			array('Description', array('tag' => 'p', 'class' => 'description')),
    			array('HtmlTag', array('tag' => 'td')),
    			array('Label', array('tag' => 'th')),
    			array(array('tr' => 'HtmlTag'), array('tag' => 'tr'))
    	);
 
        // Add an email element
        $this->addElement('text', 'nom', array(
        		'decorators'=>$decorators,
        		'label'      => 'Nom:',
        		'required'   => true,
        		'filters'    => array('StringTrim'),
        		'validators' => array(
        				'Nom',
        		)
        ));
 
        // Add an email element
        $this->addElement('text', 'prenom', array(
        		'decorators'=>$decorators,
        		'label'      => 'Prenom:',
        		'required'   => true,
        		'filters'    => array('StringTrim'),
        		'validators' => array(
        				'Prenom',
        		)
        ));
 
        // Add an email element
        $this->addElement('text', 'pseudo', array(
        		'decorators'=>$decorators,
        		'label'      => 'Identifiant:',
        		'required'   => true,
        		'filters'    => array('StringTrim'),
        		'validators' => array(
        				'Identifiant',
        		)
        ));
 
        $this->addElement('text', 'email', array(
        		'decorators'=>$decorators,
                'label'      => 'Email:',
                'required'   => true,
                'filters'    => array('StringTrim'),
                'validators' => array(
                      'EmailAddress',
            )
        ));
        // Add an email element
        $this->addElement('Password', 'pw1', array(
        		'decorators'=>$decorators,
        		'label'      => 'Mot de passe:',
        		'required'   => true,
        		'filters'    => array('StringTrim'),
        		'validators' => array(
        				'Mot de passe 1',
        		)
        ));
 
        // Add an email element
        $this->addElement('Password', 'pw2', array(
        		'decorators'=>$decorators,
        		'label'      => 'Confirmer votre mot de passe:',
        		'required'   => true,
        		'filters'    => array('StringTrim'),
        		'validators' => array(
        				'Mot de passe 2',
        		)
        ));
 
 
        $multiCheckbox = new Zend_Form_Element_MultiCheckbox(array(
        		'decorators' => array(
        				'ViewHelper',
        				array(array('td' => 'HtmlTag'), array('tag' => 'td', 'colspan' => 2)),
        				array(array('tr' => 'HtmlTag'), array('tag' => 'tr'))
        		),
        		'label' => 'jalons', 
        		'name'  => 'jalon'));
        $multiCheckbox->addMultiOptions(array('0' => 'FN1/FN1.2',     '1' => 'VT', '3' => 'FN4',     '4' => 'DT'));
        $this->addElement($multiCheckbox);
 
 
        // Add the submit button
        $this->addElement('submit', 'submit', array(
        		'decorators' => array(
        				'ViewHelper',
        				array(array('td' => 'HtmlTag'), array('tag' => 'td', 'colspan' => 2)),
        				array(array('tr' => 'HtmlTag'), array('tag' => 'tr'))
        		),
        		'ignore'   => true,
        		'label'    => 'Valider',
        ));
 
 
        $this->setDecorators(
        		array(
        				'FormElements',
        				array('HtmlTag', array('tag' => 'table')),
        				'Form'
        		)
        );
 
 
    }
}