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.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-03-02 12:22:02
Original
1570 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
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template