Codeigniter Helpers | Autoload helpers in Codeigniter | Codeigniter tutorial in hindi | by Prashant
Автор: Code With Prashant
Загружено: 2021-06-01
Просмотров: 875
Описание:
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
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: