Bonjour je suis débutante et je souhaite réaliser sous zend 1.0.0, un formulaire html pour uploader un fichier sur le serveur. Pour le formaulire, il n'y a pas trop de probleme, il est défini dans une vue, mais c'est pour la fonction qui est codé dans le controlleur ou j'ai du mal...

Pouvez-vous m'aider.
Merci
le code de la vue est le suivant
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
 
<form class="formulaire" name="frmSavePage" id="frmSavePage" method="post" action="/recruthor/index/ajout-candidature/lang/<?php echo $this->langCode;?>/offreId/<?php echo $this->offreId; ?>" enctype="multipart/form-data" >
	<div class="menu-box"></div>
		<div>
			<div class="form-label-cand"><?php echo $this->infoCand->translateReturned; ?></div>
			<div class="clear-both"></div>
			<div class="input-label"><?php echo $this->nom->translateReturned; ?> <span class="mandatory-star"> * </span></div>
			<div class="input-field">
				<input type="text" class="input-label" id="candidatNom" name="candidatNom" 
						value="<?php echo $this->candidat->candidatNom; ?>"  />
			</div>
			<div class="clear-both"></div>
			<div class="input-label"><?php echo $this->prenom->translateReturned; ?><span class="mandatory-star"> * </span></div>
			<div class="input-field">
				<input type="text" class="input-label" id="candidatPrenom" name="candidatPrenom" 
						value="<?php echo $this->candidat->candidatPrenom; ?>"  />
			</div>
			<div class="clear-both"></div>
			<div class="input-label"><?php echo $this->email->translateReturned; ?><span class="mandatory-star"> * </span></div>
			<div class="input-field">
			<input type="text" class="input-label" id="candidatEmail" name="candidatEmail" 
						value="<?php echo $this->candidat->candidatEmail; ?>"  />
			</div>
			<div class="clear-both"></div>			
			<div class="input-label"><?php echo $this->adresse->translateReturned; ?><span class="mandatory-star"> * </span></div>
			<div class="input-field" style="width:615px;">
				<textarea   id="candidatAdresse" name="candidatAdresse"> 
							<?php echo $this->candidat->candidatAdresse; ?></textarea>
			</div>				
			<div class="clear-both"></div>
			<div class="input-label" id="candidatCv"><?php echo $this->Cv->translateReturned; ?><span class="mandatory-star"> * </span></div>
			<div class="input-field">
				<input type="file"  class="input-label" id="candidatCv" name="candidatCv" 
						value="<?php echo $this->candidat->candidatCv; ?>"/>
			</div>
			<div class="clear-both"></div>			
			<div class="input-label"><?php echo $this->lettreM->translateReturned; ?><span class="mandatory-star"> * </span></div>
			<div class="input-field" style="width:615px;">
				<textarea  id="candidatLm"
							name="candidatLm"><?php echo $this->candidat->candidatAdresse; ?></textarea>
			</div>				
			<script type="text/javascript">
				CKEDITOR.replace( 'candidatLm', 
						{
							toolbar : 'FullToolbar',
							// Load the German interface.
							language: '<?php echo $this->defaultLanguage; ?>'
						}								
					);
			</script>
			<div class="clear-both">&nbsp;</div>			
			<div class="input-label">&nbsp;</div>
			<div class="input-button"><button class="boutton-submit"><?php echo $this->ajoutCand->translateReturned; ?></button></div>
		</div>
	</form>
le code du controleur est le suiant ( le bout de code de l'upload)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
// Upload de fichier
		   if( !empty($_FILES['candidatCv']) ) {
			  $fichier_temp = $_FILES['candidatCv']['tmp_name'];
			  $cv = $_FILES['candidatCv']['name'];
			  move_uploaded_file($_SERVER['DOCUMENT_ROOT'].'/thermidor/upload/'.$cv);
		  }
l'erreur qui est affichée est la suivante:

Warning: move_uploaded_file() expects exactly 2 parameters, 1 given in D:\workspace\thermidor\application\modules\recruthor\controllers\indexController.php on line 639