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
Release: 2023-03-02 12:22:02
Original
1528 people have browsed it

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template