Hello,
I am using twig template engine, and the yii2 debug toolbar is not rendered. Maybe there is some documentation on how to run the debug toolbar using twig?
Update: while searching the documentation I couldn’t find the explanation, everything is working now,. What I was missing is those this.begin<…> and this.end<…> calls.
The basic layout I am using is:
{{ use('app/assets/AppAsset') }}
{{ register_app_asset() }}
{{ this.beginPage() }}
<!DOCTYPE html>
<html lang="{{ app.language }}">
<head>
<meta charset="{{ app.charset }}"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %} {% endblock %}</title>
{{ this.head() }}
</head>
<html>
<body>
{{ this.beginBody() }}
{% block content %}
{% endblock %}
{{ this.endBody() }}
</body>
</html>
{{ this.endPage() }}