Codeigniter Helpers | Autoload helpers in Codeigniter | Codeigniter tutorial in hindi | by Prashant

Publié le: 01 juin 2021
sur la chaîne: Code With Prashant
677
27

In this video we talked about how you can add helpers in Codeigniter and how you can autoload them via autoload.php .
Helpers, as the name suggests, help you with tasks. Each helper file is simply a collection of functions in a particular category. There are URL Helpers, that assist in creating links, there are Form Helpers that help you create form elements, Text Helpers perform various text formatting routines, Cookie Helpers set and read cookies, File Helpers help you deal with files, etc.

Unlike most other systems in Codeigniter, Helpers are not written in an Object Oriented format. They are simple, procedural functions. Each helper function performs one specific task, with no dependence on other functions.

Codeigniter does not load Helper Files by default, so the first step in using a Helper is to load it. Once loaded, it becomes globally available in your controller and views.

Helpers are typically stored in your system/helpers, or application/helpers directory. Codeigniter will look first in your application/helpers directory. If the directory does not exist or the specified helper is not located there CI will instead look in your global system/helpers/ directory.
If you like this video please subscribe our channel https://bit.ly/2Tzsoi3


Sur cette page du site, vous pouvez voir la vidéo en ligne Codeigniter Helpers | Autoload helpers in Codeigniter | Codeigniter tutorial in hindi | by Prashant durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code With Prashant 01 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 677 fois et il a aimé 27 téléspectateurs. Bon visionnage!