HOW to load library class?

Discuss everything related to ApPHP Durecty CMF. All versions. Any questions related to the Directy CMF developing or using should be posted to this forum.

Moderators: alexandrleonenko, alexmst

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

HOW to load library class?

Postby administrator » Dec 2nd, '17, 20:28

To load library class or separate file (using include statement)
you may use

Code: Select all

CLoader
Framework helper.

Below you may find examples of usage:

Code: Select all

CLoader::load()->library('PaymentGateway.php', 'ipgw/providers/');

Code: Select all

CLoader::load()->file($classFile, 'ipgw/providers/');

Return to “ApPHP Directy CMF {developers/users}”