Home >Backend Development >PHP Tutorial >The class introduced in the Yii framework cannot be found.

The class introduced in the Yii framework cannot be found.

WBOY
WBOYOriginal
2016-12-01 01:27:391531browse

I would like to ask you a question. The project is written based on Yii. I used a Service class in the DemoController class in the controllers directory. This class is located in the commonserviceService namespace. When running, it prompts
Class 'commonserviceService' not found, quoted. The namespace is correct but it says it cannot be found.
I copied this Service from another Yii-based project. Thanks!

Reply content:

I would like to ask you a question. The project is written based on Yii. I used a Service class in the DemoController class in the controllers directory. This class is located in the commonserviceService namespace. When running, it prompts
Class 'commonserviceService' not found, quoted. The namespace is correct but it says it cannot be found.
I copied this Service from another Yii-based project. Thanks!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn