File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -889,17 +889,18 @@ give you access to some application specific variables automatically:
889
889
890
890
.. code-block :: html+jinja
891
891
892
+ <p>Username: {{ app.user.username }}</p>
892
893
{% if app.debug %}
893
- <p>Username: {{ app.user.username }}</p>
894
894
<p>Request method: {{ app.request.method }}</p>
895
895
<p>Application Environment: {{ app.environment }}</p>
896
896
{% endif %}
897
897
898
898
.. code-block :: html+php
899
+
900
+ <p>Username: <?php echo $app->getUser()->getUsername() ?></p>
899
901
<?php if ($app->getDebug()): ?>
900
- <p>Username: <?php echo $app->getUser()->getUsername() ?></p>
901
902
<p>Request method: <?php echo $app->getRequest()->getMethod() ?></p>
902
- <p>Application Environment: <?php echo $app->getEnvironment() ?></p>
903
+ <p>Application Environment: <?php echo $app->getEnvironment() ?></p>
903
904
<?php endif; ?>
904
905
905
906
.. index ::
You can’t perform that action at this time.
0 commit comments