Including CI4 resources in custom libraries |
(04-10-2020, 08:51 AM)Kaosweaver Wrote:(03-24-2020, 07:05 PM)kilishan Wrote: You got it - you create them just like you would in a controller/model. Here is a quick and dirty Custom Library and Controller that uses it example: Custom Library: PHP Code: <?php namespace App\Libraries; Controller using Library: PHP Code: <?php namespace App\Controllers; as you can see, its quite easy actually compared to CI3. |
Messages In This Thread |
Including CI4 resources in custom libraries - by stlake2011 - 03-24-2020, 03:01 PM
RE: Including CI4 resources in custom libraries - by kilishan - 03-24-2020, 07:05 PM
RE: Including CI4 resources in custom libraries - by stlake2011 - 03-24-2020, 07:13 PM
RE: Including CI4 resources in custom libraries - by Kaosweaver - 04-10-2020, 08:51 AM
RE: Including CI4 resources in custom libraries - by stlake2011 - 04-10-2020, 11:11 AM
RE: Including CI4 resources in custom libraries - by igorc - 04-05-2020, 12:25 PM
|