Skip to main content

Themes

Each theme within Photon is defined as a Symfony bundle. Themes extend one another, so a theme bundle need not be exhaustive.

Typically a theme will contain:

  • Pages: controllers responsible for fetching the content from a Repository and redering a Template
  • Components: controllers responsible for rendering a fragment to be embedded within a Template
  • Theme: A simple PHP class that registers the theme and specifies paths to Resources
  • Resources: a colletion of Twig templates, configuration files and static assets
  • Widgets: controllers responsible for rendering a widget

Further information on the Bundle system is available in the Symfony documentation - The Bundle System.