Ibexa DXP is a Symfony application and follows the project structure used by Symfony.
The project's PHP code (controllers, event listeners, etc.) should be placed in the
Reusable libraries should be packaged so that they can easily be managed using Composer.
Project templates should go into the
They can then be referenced in code without any prefix, for example
templates/full/article.html.twig can be referenced in Twig templates or PHP as
Project assets should go into the
They can be referenced as relative to the root, for example
assets/js/script.js can be referenced as
js/script.js from templates.
All project assets are accessible through the
If you ever remove the
assets folder manually, you need to dump translations before performing
yarn encore <dev|prod> command:
You project's configuration is placed in the respective files in
See Configuration for more information.
Importing configuration from a bundle¶
If you are keeping some of your code in a bundle, dealing with core bundle semantic configuration can be tedious
if you maintain it in the main
config/packages/ezplatform.yaml configuration file.
You can import configuration from a bundle by following the Symfony tutorial How to Import Configuration Files/Resources.
Versioning a project¶
The recommended method is to version the whole