Templates with multiple files

Last modified: 22 November 2024

Some programming patterns and frameworks require a set of related files, usually with a very specific structure. For example, with the model-view-controller (MVC) pattern, you need separate files for the model, view, and controller.

In PhpStorm, you can create sets of related files by adding child templates to a file template. When you create a file from such a template, it will also create files from child templates.