C
C
Crash2017-02-17 13:57:49
phpstorm
Crash, 2017-02-17 13:57:49

How to configure PhpStorm to work with multiple projects at the same time?

On the main job, you often have to work simultaneously with 2 or 3 projects. I'm using PhpStorm 9. Now I have 2 problems:
1. Is it possible to configure the editor so that several projects are displayed in the sidebar at the same time? While you have to open each in a separate window:
f627b101f1114a47849812df4baa0024.jpg
2. There is a separate project with common models for working with database tables, these models simultaneously use several projects. General models are dynamically loaded into each project:

'aliases' => [
        '@yii2common' => dirname(__DIR__) . '/../yii2common'
    ],

the necessary namespaces are pre-set:
use app\models\LoginForm;
use app\models\ContactForm;
use \yii2common\models\House;
use \yii2common\models\User;
use \yii2common\models\UserSearch;
use \yii2common\components\StdLib;

When working with these projects, the IDE does not "find" common models, so auto-completion does not work, plus they are highlighted as not found:
9d4ad190c76f4568a542d55620c85ac2.jpg
What can be done here? All projects if anything on Yii2.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Novikov, 2017-02-18
@Bandicoot

The good news is that you can open several projects in one window without a plugin, the bad news is that you need to update PhpStorm (which means paying [well, you understand]). Regarding the second question - add a folder with models to Include Paths .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question