Question

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?) ?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top