此内容来自第三方平台 (Dailymotion)。如果此视频侵犯了您的版权,请使用 立即删除 工具。
Lynda. Up and Running with PHP CodeIgniter /4. Adding Functionality with Libraries Section 4 -1. What are CodeIgniter libraries
描述
4. Adding Functionality with Libraries
What are CodeIgniter libraries?
In computer science, a library is a collection of functionality that serves a specific purpose with a well defined interface and logical structure. CodeIgniter comes with several dozen libraries for common tasks. Each implemented as a class. Examples of classes include the input class, form validation class and HTML table class. To use a library, it needs to be initialized within a controller using the following initialization method: this -> load ->library, followed by a string containing the machine name of the library.
For example, form_validation. Multiple libraries can be initialized at once by passing an array of strings containing the names of the libraries to load. Such as form validation and table. Each library has a dedicated page within the CodeIgniter User Guide, which includes usage examples and a function reference. In this chapter, I'm going to allow users to add magazines using a form, then validate those forms including some custom validation. After that, I'll use a number of CodeIgniter libraries to accept user input and list magazines in a generated HTML table.
Let's get started.
What are CodeIgniter libraries?
In computer science, a library is a collection of functionality that serves a specific purpose with a well defined interface and logical structure. CodeIgniter comes with several dozen libraries for common tasks. Each implemented as a class. Examples of classes include the input class, form validation class and HTML table class. To use a library, it needs to be initialized within a controller using the following initialization method: this -> load ->library, followed by a string containing the machine name of the library.
For example, form_validation. Multiple libraries can be initialized at once by passing an array of strings containing the names of the libraries to load. Such as form validation and table. Each library has a dedicated page within the CodeIgniter User Guide, which includes usage examples and a function reference. In this chapter, I'm going to allow users to add magazines using a form, then validate those forms including some custom validation. After that, I'll use a number of CodeIgniter libraries to accept user input and list magazines in a generated HTML table.
Let's get started.
相关视频
Lynda. Up and Running with PHP CodeIgniter / Section 2 - 3. Installing CodeIgniter
Mubasharamin52
Lynda. Up and Running with PHP CodeIgniter / Section 3 - 2. Modeling a magazine
Mubasharamin52
Lynda. Up and Running with PHP CodeIgniter / Section 2 - 4. Creating a static page controller
Mubasharamin52
Lynda. Up and Running with PHP CodeIgniter / Section 2 - 5. Generating output with a view
Mubasharamin52
Lynda. Up and Running with PHP CodeIgniter / Section 3 - 1. What is a model and how is it used
Mubasharamin52
Lynda. Up and Running with PHP CodeIgniter / Section 4 -2. Creating a form to add magazines
Mubasharamin52
来自同一上传者
Lynda. Up and Running with PHP CodeIgniter / Section 4 -2. Creating a form to add magazines
11 次观看
Lynda. Up and Running with PHP CodeIgniter / Section 3 -4. Displaying a magazine
3 次观看
Lynda. Up and Running with PHP CodeIgniter /4. Adding Functionality with Libraries Section 4 -1. What are CodeIgniter libraries
1 次观看
Lynda. Up and Running with PHP CodeIgniter / Section 3 - 3. Saving magazines using active records
3 次观看
Lynda. Up and Running with PHP CodeIgniter / Section 3 - 2. Modeling a magazine
3 次观看
Lynda. Up and Running with PHP CodeIgniter / Section 3 - 1. What is a model and how is it used
2 次观看