core/classes/FileHelper.class.php
public function serveAsDownload($path){

        $this->isFileOrDie($path);

        $this->downloadHeaders($path);
        $this->serve($path);

    }
public function serveAsDownload($path){

        $this->isFileOrDie($path);

        $this->downloadHeaders($path);
        $this->serve($path);

    }
public function serveAsDownload ( $ path ) { $ this -> isFileOrDie ( $ path ) ; $ this -> downloadHeaders ( $ path ) ; $ this -> serve ( $ path ) ; }
Serve a file as a download.


@param string $path The file to be downloaded.

@return void
Serve a file as a download .