added validator

This commit is contained in:
2021-05-30 20:30:01 +02:00
parent cc470de716
commit c39ac0d299
9 changed files with 183 additions and 24 deletions

@ -3,18 +3,10 @@
{% block title %}Hello BlogController!{% endblock %}
{% block body %}
<style>
.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>
{% for blog in blogs %}
<h4>{{ blog }}</h4>
<p>{{ blog.teaser }}</p>
<div class="example-wrapper">
<h1>Hello {{ controller_name }}! ✅</h1>
This friendly message is coming from:
<ul>
<li>Your controller at <code><a href="{{ '/Users/tracer/Projects/24unix.net/24unix.net_web/24unix/src/Controller/BlogController.php'|file_link(0) }}">src/Controller/BlogController.php</a></code></li>
<li>Your template at <code><a href="{{ '/Users/tracer/Projects/24unix.net/24unix.net_web/24unix/templates/blog/index.html.twig'|file_link(0) }}">templates/blog/index.html.twig</a></code></li>
</ul>
</div>
<a href="{{ path('blog', { id: blog.id }) }}">View more …</a>
{% endfor %}
{% endblock %}

@ -0,0 +1,12 @@
{% extends 'base.html.twig' %}
{% block title %}
{% endblock %}
{% block body %}
Blogtest
{{ blog.content }}
{% endblock %}