<?php
defined('BASEPATH') OR exit('No direct script access allowed');


/**
*| --------------------------------------------------------------------------
*| File Controller
*| --------------------------------------------------------------------------
*| user site
*|
*/
class File extends Admin	
{
	
	public function __construct()
	{
		parent::__construct();

		$this->load->model('user/model_user');
	}

	/**
	* download file
	*
	* @var $file_path String
	* @var $file_name String
	*/
	public function download($file_path = null, $file_name = null)
	{
		$this->load->helper('download');
		$path = FCPATH . '/uploads/'.$file_path.'/' . $file_name;
		
		force_download($path, NULL);
	}
}