Yii2 Use of unknown class
4 posts
• Page 1 of 1
Yii2 Use of unknown class
Hi there,
I'm using Visual studio 2017 and have this warning on my models. I have the use command in the beginning of the file but every class in the app namespace can't be recognized. For example : \app\models\db\Subscribers.
Please help.
I'm using Visual studio 2017 and have this warning on my models. I have the use command in the beginning of the file but every class in the app namespace can't be recognized. For example : \app\models\db\Subscribers.
Please help.
- kakalos12
- Posts: 1
- Joined: May 31st, 2017, 4:08 am
Re: Yii2 Use of unknown class
Change your Default namespace in project file to app. (Right click on project icon in Solution explorer, then choose Properties).
- yaago
- Posts: 1
- Joined: June 28th, 2017, 2:12 pm
Re: Yii2 Use of unknown class
I keep getting these exceptions (when parsing the project) since I wrote about this with all my projects with all versions.
- saara
- Posts: 1
- Joined: August 1st, 2017, 5:30 pm
Re: Yii2 Use of unknown class
Hello,
Could you please specify what kind of exceptions? If possible provide us with the activity log? https://docs.devsense.com/troubleshooting/activitylog-xml
Thanks,
Could you please specify what kind of exceptions? If possible provide us with the activity log? https://docs.devsense.com/troubleshooting/activitylog-xml
Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 86 guests