Using Framework Model View Controller
With IntelliJ IDEA, you can examine the structure of a project in the terms of the Model-View-Controller pattern. This functionality is provided through in the dedicated Framework tool window and is currently available for the Symfony2 and Yii command line tools.
In this section:
- The Command Line Tool Support and Framework MVC Structure Support plugins are downloaded, installed, and enabled. The plugins are not bundled with IntelliJ IDEA, but they can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins. Once enabled, the plugins are available at the IDE level, that is, you can use it in all your IntelliJ IDEA projects.
- The Symfony2 or Yii command line tool is downloaded.
- Integration with the tool is enabled on the Command Line Tool Support page of the Settings dialog box.
- A Symfony2 or a Yii specific project is available on your machine.
To enable the MVC view
- Open the IntelliJ IDEA settings and click Framework Integration.
- In the Framework Integration page, specify the command line tool your project is based on and the location of the tool project. IntelliJ IDEA checks the contents of the specified tool project directory and accepts the appointed project root if it contains the following subfolders:
After that, the Framework tool window is available through the menu.
To examine the MVC structure of a tool-specific project
- To open the required tool-specific project, choose or , and then select the project root folder in the dialog box that opens.
- In the Framework tool window that immediately opens automatically, examine the project in the terms of bundles, controllers, and other elements of the MVC pattern.