Problem with yii2 and Netbeans

Hi all, im trying to setting up the ide to work with yii2.

Id like to use Netbeans or PHPStorm.

With the first i can create a yii2 base project and run it in the browser but i still keep the errors (see the attachments).

If anyone have a link or want to write the correct instruction for setting up Netbeans or PHPStorm with yii2 are very wellcome.

Any help is very appreciated.

you may exclude


dir from project.

I just ignore the errors in vendor!