Symfony Folder Structure

Symfony file structure


{% extends 'layouts/base.html.twig' %}
{% block title %}Test Page{% endblock %}

{% block stylesheets %}

{% endblock %}


{% block content %}

{{ component('breadcrumb', { pagetitle: 'Skote', title: 'Test Page' }) }}

                <div>

                </div>
                
{% endblock %}


{% block javascripts %}

{% endblock %}

<script src="assets/js/app.js">
{% endblock %}                                       

Layout setup

You can set the default layout in the templates/layouts/_main.html.twig file in the html tag.

<html data-topbar="light" data-layout-size="boxed"> 
data-sidebar-size="small" To set small layout size.
data-layout-size="boxed" To set boxed layout size.
data-bs-theme="light" To set Light layout mode.
data-bs-theme="dark" To set Dark layout mode.
data-topbar="light" To set the Light color of Topbar.
data-topbar="dark" To set the dark color of Topbar.
data-topbar="colored" To set the colored Topbar.
© Skote.