這裏我有一個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文件命名空間。 –