What are the CI4 ways to use Database and Library in a Helper? |
(08-15-2019, 10:34 AM)dave friend Wrote:(08-15-2019, 10:21 AM)webdevron Wrote: I need to use a database model and library in my helper. Also need to use a library. In CI 3 I used to do it like following: Thanks for your response in both threads. It was 15 minutes before my post. Currently I'm solving the issue like bellow. PHP Code: // -------------------------- BaseController Constructor Need your feedback about this solutions. Again I am little bit confused about Service. I have read through the docs but still not clear about understanding "What is service?". |
Messages In This Thread |
What are the CI4 ways to use Database and Library in a Helper? - by webdevron - 08-15-2019, 10:21 AM
RE: What are the CI4 ways to use Database and Library in a Helper? - by dave friend - 08-15-2019, 10:34 AM
RE: What are the CI4 ways to use Database and Library in a Helper? - by webdevron - 08-15-2019, 11:41 AM
RE: What are the CI4 ways to use Database and Library in a Helper? - by dave friend - 08-15-2019, 12:08 PM
RE: What are the CI4 ways to use Database and Library in a Helper? - by webdevron - 08-15-2019, 12:31 PM
RE: What are the CI4 ways to use Database and Library in a Helper? - by kilishan - 08-15-2019, 12:05 PM
RE: What are the CI4 ways to use Database and Library in a Helper? - by webdevron - 08-15-2019, 12:28 PM
|