php - Looking for help with the reference problem of TP3.2, what's wrong with what I wrote? What about displaying citation errors?
phpcn_u15822017-06-06 09:53:34
0
2
579
I imported it directly from the DEMO. Because it is multi-layered, I wrote it as above. The directory is as above. But when I new the class, why is a reference error reported? I haven’t moved the structure
According to system rules, the import method cannot import class library files with dots, because the dots will be directly converted into slashes. For example, if we define a file named User.Info.class.php , use :
import("Org.User.Info");
If loaded in
, an error will occur, causing the loaded file not to be the Org/User.Info.class.php file, but the Org/User/Info.class.php file. In this case, we can use:
import("Org.User#Info");
Please read the document carefully, architecture => automatic loading
Try new JsApiPay()
Please read the document carefully, architecture => automatic loading