content.about
Für mehr Informationen besuche die offizielle Symfony-Dokumentation.
content.about
Für mehr Informationen besuche die offizielle Symfony-Dokumentation.
content.about
Für mehr Informationen besuche die offizielle Symfony-Dokumentation.
Klicke auf diesen Button, um den Quellcode des Controllers und des Templates anzuzeigen, der zum Rendern dieser Seite verwendet wird.
public function about(Request $request, AuthenticationUtils $helper): Response
{
// this statement solves an edge-case: if you change the locale in the login
// page, after a successful login you are redirected to a page in the previous
// locale. This code regenerates the referrer URL whenever the login page is
// browsed, to ensure that its locale is always the current one.
$this->saveTargetPath($request->getSession(), 'main', $this->generateUrl('admin_index'));
return $this->render('security/about.html.twig', [
// last username entered by the user (if any)
'last_username' => $helper->getLastUsername(),
// last authentication error (if any)
'error' => $helper->getLastAuthenticationError(),
]);
}
{% extends 'base.html.twig' %}
{% block body_id 'about' %}
{% block main %}
{% if error %}
<div class="alert alert-danger">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
<div class="row">
<div class="well well-lg">
<p>
{{ 'content.about'|trans|raw }}
</p>
<p>
{{ 'help.more_information'|trans|raw }}
</p>
</div>
<div id="login-help" class="col-sm-7">
</div>
</div>
{% endblock %}
{% block sidebar %}
{{ parent() }}
{{ show_source_code(_self) }}
{% endblock %}