Frameworks always follow MVC pattern. Each MVC is packed with OOPs concept and their modules. These modules are nothing but the reusable block of codes which we use by simply importing in application instead of writing code again and again. In CodeIgniter this is the concept termed as CodeIgniter Library.

arfbgEFBERbf

Libraries are classes, we can use it by it’s objects and sometimes we use static methods directly.

In CodeIgniter 4 we have several libraries and/or services available as listed followings –

  • CURLRequest Class
  • Email Class
  • Encryption Service
  • Image Manipulation Class
  • Pagination
  • Session Library

and several libraries or services available in CodeIgniter 4 documentation. These all are created for their specific functionality. We can import their class and use their methods.

 

But in same cases we need to create a custom library or service according to the need of application. So, here we will see next, How can we create a CodeIgniter 4 Library ?

*コメント* (99)
John
投稿日時 15:32, 06 Dec 返信する

Lorem Ipsum is simply dummy text of the printing and typesetting industry.

John
投稿日時 15:32h, 06 Dec 返信する

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.

John
投稿日時 15:32, 06 Dec 返信する

There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.

John
投稿日時 15:32, 06 December 返信する

The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested.

*コメント*する