General

  eZ Systems Website
  Technical documentation
  Editor documentation

This Documentation contains:
 
Technical documentation:



⚠ WARNING ! This documentation is deprecated !

Please go to the current Technical Documentation

Skip to end of metadata
Go to start of metadata

Since release 2015.10, eZ Platform is very close to the standard Symfony distribution. It comes with default settings that will let you get started in a few minutes.

The AppBundle

Most projects can use the provided AppBundle, in the src folder. It is enabled by default. The project's PHP code (controllers, event listeners, etc.) can be placed there. 

Reusable libraries should be packaged so that they can easily be managed using Composer.

Templates

Project templates should go into app/Resources/views.

They can then be referenced in code without any prefix, for example app/Resources/views/content/full.html.twig can be referenced in twig templates or PHP as content/full.html.twig.

Assets

Project assets should go into the web folder, and can be referenced as relative to the root, for example web/js/script.js can be referenced as js/script.js from templates.

Configuration

Configuration may go into app/config. However, services definitions from AppBundle should go into src/AppBundle/Resources/config.

Versioning a project

The recommended method is to version the whole ezplatform repository. Per installation configuration should use parameters.yml.

 

Related topics: