mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 09:05:43 +00:00
argument pass optiomization
This commit is contained in:
parent
f88f1c63f2
commit
1495378a4b
2 changed files with 7 additions and 11 deletions
|
|
@ -18,7 +18,11 @@
|
|||
</a>
|
||||
{% block header_search %}
|
||||
{{ render(controller(
|
||||
'App\\Controller\\SearchController::module'
|
||||
'App\\Controller\\SearchController::module',
|
||||
{
|
||||
query : app.request.get('query'),
|
||||
type : app.request.get('type')
|
||||
}
|
||||
)) }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
|
@ -33,7 +37,7 @@
|
|||
{% block main_profile %}
|
||||
{{ render(controller(
|
||||
'App\\Controller\\UserController::module',
|
||||
{route : app.request.get('_route')}
|
||||
{ route : app.request.get('_route') }
|
||||
)) }}
|
||||
{% endblock %}
|
||||
{% block main_content %}{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,2 @@
|
|||
{% extends 'default/layout.html.twig' %}
|
||||
{% block title %}{{ query }} - {{'Search'|trans }} - {{ name }}{% endblock %}
|
||||
{% block header_search %}
|
||||
{{ render(controller(
|
||||
'App\\Controller\\SearchController::module',
|
||||
{
|
||||
query : query
|
||||
}
|
||||
)) }}
|
||||
{% endblock %}
|
||||
{% block title %}{{ query }} - {{'Search'|trans }} - {{ name }}{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue