![]() |
Sorry, I guess I misunderstood your question.
So you have your own library and want to rewrite it to work with CI4? In that case, instead of PHP Code: $this->load->library('whatever', $config); PHP Code: $whatever = new \App\Libraries\Whatever($config); Alternatively, you can also use service to get a single instance every time: https://codeigniter.com/user_guide/conce...vices.html If that again not what you're asking for, I'm afraid you have to explain the question better.
michalsn.dev - mostly about CodeIgniter
|
Messages In This Thread |
How to add data when loading CI4 library - by PaulC - 04-05-2025, 04:27 AM
RE: How to add data when loading CI4 library - by michalsn - 04-05-2025, 06:20 AM
RE: How to add data when loading CI4 library - by PaulC - 04-05-2025, 08:50 AM
RE: How to add data when loading CI4 library - by InsiteFX - 04-06-2025, 12:04 AM
RE: How to add data when loading CI4 library - by michalsn - 04-06-2025, 08:38 AM
RE: How to add data when loading CI4 library - by PaulC - 04-07-2025, 09:10 AM
|