I have a few 'helper' programs in the PHPM project folder which need to use Composer packages. These programs effect the database but, apart from being in the PHPM menu, they are otherwise independent of PHPM.
Because I want to use Composer packages, I add the line
require 'vendor/autoload.php';
to my programs
... but when I do this, everything fails with
Error: Undefined constant "PHPMaker2024\cpbartabs2024\PROJECT_CHARSET" in D:\wwwroot\cpbartabs\src\config.php on line 158
I assume autoload.php is loading config.php which is creating this error.
I don't know why PROJECT_CHARSET is undefined. 'Charset' is set to utf-8 on HTML-General.
Is there a way to fix this or is it just impossible for programs outside PHPM to utilise Composer packages like this?
Thanks