php - Looking for help with the reference problem of TP3.2, what's wrong with what I wrote? What about displaying citation errors?
phpcn_u1582
phpcn_u1582 2017-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

Thanks for the advice!

phpcn_u1582
phpcn_u1582

reply all(2)
巴扎黑

Try new JsApiPay()

左手右手慢动作

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template