Frage

I will have this structure:

  -TaskBundle
    -FrontendConroler
    -BackendController
  -Userbundle
    -FrontendConroler
    -BackendController
  -HoursUserBundle
    -FrontendConroller
    -BackendController

This is right logic? Second and main question, I will have 2 base templates, for Frontend and Backend, where I will push base template (one most logic place -BasetemplatesBundle?) ?

War es hilfreich?

Lösung

Yes, it is right structure. You can create CoreBundle, and store templates in it, or you can just create in app / Resources / views / frontend.html.twig, and backend.html.twig. Or with orther name.

You can call template:

{% extends '::frontend.html.twig' %}
{% extends '::backend.html.twig' %}

Creating and Using Templates

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top