Yii2 Use of unknown class

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Yii2 Use of unknown class

Postby kakalos12 » May 31st, 2017, 4:11 am

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.
kakalos12
 
Posts: 1
Joined: May 31st, 2017, 4:08 am

Re: Yii2 Use of unknown class

Postby yaago » June 28th, 2017, 2:20 pm

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

Postby saara » August 1st, 2017, 5:45 pm

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

Postby Miloslav Beno » August 10th, 2017, 8:47 am

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,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1039
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 1 guest

cron

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 1 guest
Phalanger