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


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 2 guests

User Control Panel

Login

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (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 2 guests
Phalanger