I need a new functionality to use uploaded libraries:
Every time i write my own classes, or will use a class from an other developer than I can’t used it on the easy scriptcase way.
The reason for this is, the sc_include macro or the Programming->Libraries checkboxes, make not an php include or requier in the head of the sc-php-file, but includes the source code of the libraries directly in the application-class.
Please implement a new functionality in Programming->libraries. Make a checkbox or better a select with two options (“use SC include”,“use PHP-include”) behind every libraryitem to select the developer will use sc_include or use php-require, php-include
Par Example:
A developer write this:
File:my_class.inc.php
class c_my_class{
function say_hello(){
echo("Hello");
}
}
Load this up with Tools->Libraries…
An than in any application
Go to Programming->Libraries Check the my_class.inc.php and select “use PHP-Include” Option
Now start the source genarator. When the developer has select “use SC-Include” then was include the Source code of the Library.
HAs the developer select “use PHP-include” then write the codegenerator an require or include in the then Include Section of the generated php file and copy the library code in in a samenamed file in the central libaryfolder (_lib) of the System.
{mc} = new c_my_class();
{mc}->say_hello();