Page 1 of 1

Yii2 Use of unknown class

PostPosted: May 31st, 2017, 4:11 am
by kakalos12
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.

Re: Yii2 Use of unknown class

PostPosted: June 28th, 2017, 2:20 pm
by yaago
Change your Default namespace in project file to app. (Right click on project icon in Solution explorer, then choose Properties).

Re: Yii2 Use of unknown class

PostPosted: August 1st, 2017, 5:45 pm
by saara
I keep getting these exceptions (when parsing the project) since I wrote about this with all my projects with all versions.

Re: Yii2 Use of unknown class

PostPosted: August 10th, 2017, 8:47 am
by Miloslav Beno
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,