示例#1
0
 public function download()
 {
     $jinput = JFactory::getApplication()->input;
     $id = $jinput->get('id', 0, 'integer');
     $type = $jinput->get('type', '', 'string');
     if ($id) {
         JDownloadsHelper::downloadFile($id, $type);
     }
     // set redirect
     $this->setRedirect('index.php?option=com_jdownloads&view=files', $msg);
 }