S
S
semki0962017-04-28 19:19:39
Twig
semki096, 2017-04-28 19:19:39

How to display page generation speed in twig?

In PHP it is clear - (time at the end of the script) - (time at the beginning of the script) = page generation time. How to do it in Twig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-04-28
@semki096

calculate and pass as a regular variable to the template.
or make a simple extension like stackoverflow.com/questions/10211457/symfony2-get-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question