The class used to automatically load the PPPHP *** load the class library *** will first load the class * @ paramstr $ lib class name * @ paramstr $ dirlikeCorelib * @ returnobj * protectedfunctionb ($ lib) in the lib of the project directory) {$ systempathCORE. lib. $ lib .. class. php; $ apppathAPP. lib. $ lib
The class used to automatically load the PPPHP/*** load the class library *** will first load the class * @ param str $ lib class name * @ param str $ dir like/Core/lib/ * @ return obj */protected function B ($ lib) {$ systempath = CORE. '/lib /'. $ lib. '. class. php'; $ apppath = APP. '/lib /'. $ lib
Used to automatically load PPPHP
/* ** Loading the class library * @ param str $ lib class name * @ param str $ dir like/Core/lib/* @ return obj * /protected function B ($ lib) {$ systempath = CORE. '/lib /'. $ lib. '. class. php'; $ apppath = APP. '/lib /'. $ lib. '. class. php '; // introduce libif (file_exists ($ apppath) {include_once $ apppath;} else {if (file_exists ($ systempath) {include_once $ systempath ;} else {show_error ('library '. $ lib. 'nonexistent') ;}$ lib = new $ lib (); return $ lib; // returns OBJ}