Cygnite - A Modern Toolkit For Web Developers

The Elegant Way of Building Full-Featured Web Applications

Cygnite Dynamic Routing



Download Class

Downloading files

You can simply download any file with downloader class. Simply pass file path to download the file as below.

use Cygnite\Common\Downloader;

$download = new Download;

Downloader allows you to download different kind of files.

Few extensions are - jpeg, jpg, gif,png, pdf, docx, zip, xls, video formats etc.

[Note: You can only download the files which are available inside framework root directory. But you may have multiple sub directories inside.]
Follow Us On Facebook Twitter Google+ Linkedin
Released Under The MIT Public License. Copyrights @2012-2017. Powered by- Sanjoy Dey Productions.