CodeIgniter Forums
CodeIgniter4 - Event pass by ??? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: CodeIgniter4 - Event pass by ??? (/showthread.php?tid=71850)

Pages: 1 2


RE: CodeIgniter4 - Event pass by ??? - abrkof - 01-04-2020

how i can auto load a class in events?

example: class, function? in the directory libraries.


RE: CodeIgniter4 - Event pass by ??? - kilishan - 01-06-2020

As long as it is namespaced and the app will recognize the namespace (either through our autoloader or Composer) it should work just fine. Provide the fully qualified class name when you assign your listener.