Пример #1
0
 function download($id)
 {
     $knowledge = new Knowledge_file($id);
     $knowledge->counter();
     $this->load->helper('download');
     $data = file_get_contents("uploads/knowledge/" . basename($knowledge->file));
     $name = basename($knowledge->file);
     force_download($name, $data);
 }