ImpressPages has an autoloader, which loads class definitions by request from your code automatically.

If PHP file path matches the namespace, then the class declared in this file is loaded automatically on a first usage, so there is no need to use require or include functions.

// place this code into MyExampleClass.php file in Plugin\MyExamplePlugin directory to make it autoloadable.
namespace Plugin\MyExamplePlugin;

class MyExampleClass
    public function __construct() {
        // $output = "MyExampleClass initiated!";
comments powered by Disqus