56 lines
2.0 KiB
Twig
56 lines
2.0 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Hello IndexController!{% endblock %}
|
|
|
|
{% block body %}
|
|
<style>
|
|
body {
|
|
background-color: black;
|
|
color: white;
|
|
font-family: monospace;
|
|
}
|
|
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
|
|
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
|
|
</style>
|
|
|
|
<div class="example-wrapper">
|
|
<h1>Hello {{ controller_name }}! ✅</h1>
|
|
|
|
This friendly message is coming from:
|
|
<ul>
|
|
<li>Your controller at <code><a href="{{ '/home/xergio/dev/symfony-playground/src/Controller/IndexController.php'|file_link(0) }}">src/Controller/IndexController.php</a></code></li>
|
|
<li>Your template at <code><a href="{{ '/home/xergio/dev/symfony-playground/templates/index/index.html.twig'|file_link(0) }}">templates/index/index.html.twig</a></code></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<ul>
|
|
{% for table in schemaManager.listTables %}
|
|
<li>
|
|
{{ table.name }}
|
|
|
|
<ul>
|
|
{% for column in schemaManager.listTableColumns(table.name) %}
|
|
<li>{{ column.name }} ({{ column.type.name }})</li>
|
|
{% endfor %}
|
|
|
|
<li>FK
|
|
<ul>
|
|
{% for fk in schemaManager.listTableForeignKeys(table.name) %}
|
|
<li>{{ fk.name ?? '??' }} ({{ fk.columns|join }}) -> {{ fk.getForeignTableName() }}({{ fk.getForeignColumns()|join }})</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
|
|
<li>IX
|
|
<ul>
|
|
{% for fk in schemaManager.listTableIndexes(table.name) %}
|
|
<li>{{ fk.name }} ({{ fk.columns|join }})</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|