Fatal error: Call to undefined function force_download()

1

While working on file download functionality using codeigniter , I am getting below fatal error: Call to undefined function force_download() , Refer below stack trace for more details.

Download Controller Class

Solution

To use force_download() function, You have to load codeigniter download helper class $this->load->helper('download'); in download() function or in controller __construct() function.

Leave A Reply

Your email address will not be published.