Welcome Guest, Not a member yet? Register   Sign In
Openpay LIBRARY
#6

It's hard to be sure, as there are two questions here, but I believe that with CI4 you are better off using the namespaces rather than the older method of directly loading the php files with the require_once function.

The simplest way, is to insert a USE statement at the top of the file, with the path to the library file, such as:

PHP Code:
use path/to/library 

If you are using something like VS Code, then you can have the system insert that line for you when you find an unknown class.

I am not using OpenPay, so cannot give you direct help, but that should point you in the right direction.
Reply


Messages In This Thread
Openpay LIBRARY - by ONGENERAL_TOWER - 03-10-2020, 11:46 AM
RE: Openpay LIBRARY - by includebeer - 03-12-2020, 09:49 AM
RE: Openpay LIBRARY - by cgowez - 08-25-2020, 12:25 PM
RE: Openpay LIBRARY - by Jan Zelenka - 08-26-2020, 04:44 AM
RE: Openpay LIBRARY - by cgowez - 08-26-2020, 07:55 AM
RE: Openpay LIBRARY - by Chroma - 08-27-2020, 04:43 AM
RE: Openpay LIBRARY - by cgowez - 08-30-2020, 02:34 PM
RE: Openpay LIBRARY - by tgix - 09-01-2020, 10:28 PM
RE: Openpay LIBRARY - by cgowez - 09-02-2020, 10:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB