Learn how to build your own helper in CodeIgniter

This example uses a helper to download a very large file, of 200 MB, which can’t be downloaded in one file reading.

This example will be constructed from the following helpers:

  • application/helpers/my_download_helper.php: This is the CI helper that is used to download a very large file
  • application/controllers/classg2.php: This is the controller that uses the my_download helper
  • application/views/classg2view.php: This is the view that has a link for the file download

Let us assume that the URI to the project root is http://mydomain.com/myproject. Hence the URI to execute the auth controller for login will be http://mydomain.com/myproject/classg2.

About the author

Deven Rathore

I'm Deven Rathore, a multidisciplinary & self-taught designer with 3 years of experience. I'm passionate about technology, music, coffee, traveling and everything visually stimulating. Constantly learning and experiencing new things.

Pin It on Pinterest

Shares

Get the best in web dev

Join dunebook.com and recieve best in web dev , once a week FREE

An email has been Sent to your Inbox ! Please Confirm your Subscription :)