Bonjour,

J'ai crée un formulaire avec zend et voici le code de l'action index:
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
$this->view->title = "Selectionner un employé";
 
$form = new StatisFormulaire();    
 
        $form->submit->setLabel('Selectionner');
        $this->view->form = $form;
        if ($this->_request->isPost()) {
            $formData = $this->_request->getPost();
 
           // 
         //    $idemp=$this->_request->getPost('idemp');
 
 
 
            if ($form->isValid($formData)) {
 
            	$emp = new Vente();
 
                $em= $form->getValue('em');
 
 
 
 
 
 
 
 
 
 
 
				$emp = new Vente();
 
 
 
				$id1 = (int)$form->getValue('em');
 
				$select = $emp->select()->from($emp,
              	'nom_empv')->where('id_vente=?',$id1);   
 
			    $res = $emp->fetchAll($select);
 
                foreach ($res as $r) {
               $nomempv= $r->nom_empv;
 
 
 
                }
 
                //$doc2 = new Docteur();
 
            $id2 = (int)$form->getValue('em');
 
				$select = $emp->select()->from($emp,
              	'prenom_empv')->where('id_vente=?',$id2);   
 
			    $res = $emp->fetchAll($select);
 
                foreach ($res as $r) {
               $prenomempv= $r->prenom_empv;                              
 
                }				
 
 
 
 
                $emp = new Vente();
 
             //$row01 = $emp->createRow();
               $row01->nom_empv= "$nomempv";
               $row01->prenom_empv= "$prenomempv";
               //$row01->save();
 
               $this->_redirect('/statis/selectionner');
}
else {
                $form->populate($formData);
            }
}
et voici le code de SelectionnerAction:
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
public function SelectionnerAction(){
 
 $this->view->title = "Selectionner un employé";
 
$form = new StatisFormulaire();    
 
        $form->submit->setLabel('Selectionner');
        $this->view->form = $form;
        if ($this->_request->isPost()) {
            $formData = $this->_request->getPost();
 
           // 
         //    $idemp=$this->_request->getPost('idemp');
 
 
 
            if ($form->isValid($formData)) {
 
 
}
} 
 
 
 
 
		}
et voici le code de la vue index.phtml:
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
<?php
	$this->headTitle('~JAMAL~ Selection d\'un client ');
?>
			<h4><a href="<?php echo $this->url(array('controller'=>'statis',  
 
 //normalement le ctrl equivalent est vente ( monture)
        'action'=>'index')); ?>"></a></h4>
 
     <h2>Statistiques des ventes par jour</h2>
	       <fieldset><legend>Sélectionner l'employeur:</legend>
 
 
 
 
<form method="post" action ="<?php echo $this->url{array('action'=>'selectionner')};  ?>" 
 
>											
 
 
 
         <table>
 
         <tr><td>
 
       <fieldset><legend> </legend> <table cellpadding="0" cellspacing="0" border="0">
          <h2> Sélectionner un employé : </h2>
 
						<tr><td align="center"><?php echo $this-
 
>form->em;   ?></td >  </tr>
 
 
 
 
         </table> </fieldset>
          </td>
 
 
 
 
    <tr><td align="center"><?php echo $this->form->submit; ?></td ><td></td>		
 
</tr>
 
 
         </table></form>
 
 
 
 
 
           </fieldset>
mais durant l'exécution,voici l'erreur qui me donne:
Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'Action "selectionner" does not exist and was not trapped in __call()' in C:\wamp\www\Opticien\library\Zend\Controller\Action.php:485 Stack trace: #0 C:\wamp\www\Opticien\library\Zend\Controller\Action.php(515): Zend_Controller_Action->__call('selectionnerAct...', Array) #1 C:\wamp\www\Opticien\library\Zend\Controller\Dispatcher\Standard.php(289): Zend_Controller_Action->dispatch('selectionnerAct...') #2 C:\wamp\www\Opticien\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #3 C:\wamp\www\Opticien\application\bootstrap.php(36): Zend_Controller_Front->dispatch() #4 C:\wamp\www\Opticien\public\index.php(8): require('C:\wamp\www\Opt...') #5 {main} thrown in C:\wamp\www\Opticien\library\Zend\Controller\Action.php on line 485
Mais j'ai déja crée l'action selectionner et aussi selectionner.phtml

Donc ou est le problème?
Merci pour vos réponses.