Salut,

J'ai fais ceci :
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
 function download($idTitre=null)
   {
      //Recherche du nom de fichier
      $titre = $this->Titre->field('fichier_extrait',array('id'=>$idTitre));
      //Download
      //$this->view = 'Media';
      $params = array(
 		'id' => $titre,
 		'name' => substr($titre, 0, strpos($titre, '.mp3')),
 		'download' => true,
 		'extension' => 'mp3',
      	'mimeType' => array('mp3' => 'audio/mpeg'),      
 		'path' => APP .  Configure::read('repertoireDownload') . DS 
      );
//      debug($params);
      $this->set($params);
   }
Mais rien ne se passe...
Ai-je oublié quelque chose ou mal compris le fonctionnement ?

merci de votre aide