1. Yii2 uses the require () function to introduce the file, but the system prompts that the class cannot be found. isn't it so useful? 2. what should I do if I want to implement the call method? 3. does Yii2 call the folder method? Yii1 some, after calling this folder, the package in this folder...
1. Yii2 uses the require () function to introduce the file, but the system prompts that the class cannot be found. isn't it so useful?
2. what should I do if I want to implement the call method?
3. does Yii2 call the folder method? Yii1. after this folder is called, all classes and methods in this folder can be used.
Supplement: The method shown in the figure is OK when I use it on ecshop, but the class cannot be found on yii2.
Reply content:
1. Yii2 uses the require () function to introduce the file, but the system prompts that the class cannot be found. isn't it so useful?
2. what should I do if I want to implement the call method?
3. does Yii2 call the folder method? Yii1. after this folder is called, all classes and methods in this folder can be used.
Supplement: The method shown in the figure is OK when I use it on ecshop, but the class cannot be found on yii2.
Obviously, you have a problem with the class path and use the namespace to handle it.