这里我有一个Crypt.php文件。它的一个类有两个函数,并将其存储在“\ backend \ components”文件夹中。Yii2 -windows 10 xampp路径错误
"Unknown Class – yii\base\UnknownClassException Unable to find 'backend\components\Crypt' in file: E:\xampp\htdocs\pope-Admin/backend/components/Crypt.php. Namespace missing?" in this path half of them have slash(/) and half of the part have back slash() how to solve it?
此错误通常意味着,因为它说,你还没有宣布在crypt.php文件命名空间。 –