I am trying to include a 3rd party library for use in some blank php apps in SC. So there is a x.php file that needs to be included and I went ahead to add this from Tools --> Libraries at the Public level.
However I get this warning when I upload the file “This library contains codes out of the functions that will only be processed through the sc_include macro”.
When I try to use the library in a blank app by checking the box in the blank app at Programming --> Libraries, I keep getting undefined variables errors following the instantiation calls e.g.
$color = new \uiwidgets\UI\DropDownList(‘color’);
There is no difference when I use require_once within onExecute viz.
<?php require_once ‘lib/uiwidgets/x.php’; ?> inside a multiline echo statement.
Please does anyone have experience with this problem and suggestions on what I can do?