1, Yii2 use the Require () function to introduce the file, but the hint can not find the class, not so use it?
2. What should I write if I want to implement the method called?
3, Yii2 There is no way to call the folder? Yii1 Some, after calling this folder, the folder contains the classes and methods can be used.
Add: The method I ecshop is ok when I use it, but I can't find the class on the Yii2.
Reply content:
1, Yii2 use the Require () function to introduce the file, but the hint can not find the class, not so use it?
2. What should I write if I want to implement the method called?
3, Yii2 There is no way to call the folder? Yii1 Some, after calling this folder, the folder contains the classes and methods can be used.
Add: The method I ecshop is ok when I use it, but I can't find the class on the Yii2.
Obviously you have a problem with the classpath and use namespaces to handle it.