CodeIgniter Forums
Include 3d-party - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Include 3d-party (/thread-74704.html)



Include 3d-party - mintwint - 10-27-2019

Hello!

I have some problem connecting 3d libraries.

I send files to folder:

Code:
app/ThirdParty/Awsmailru/

Autoloader this:


Code:
app/ThirdParty/Awsmailru/aws-autoloader.php


How can I use autoloader and library classes in Library files app/Library/MyLibrary.php?

Thank you!


RE: Include 3d-party - donpwinston - 10-27-2019

Should be app/Libraries/MyLibrary.php

$myLib = new \App\Libraries\MyLibrary();

Same thing with ThirdParty.