2

I need to display in footer of my page 2 information:

  • Rendering time
  • Number of database queries

In app_dev.php these infos are in debug toolbar at the bottom of the page. Anyone knows how to get that infos in 'prod' environment?

EDIT: I found solution to first of my problems - Rendering time - under this question

1 Answer 1

2

This is possible in /app/AppKernel.php

Simply add new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); to the $bundles array.

You'll see there's the same within if (in_array($this->getEnvironment(), array('dev', 'test')))

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.