I
I
Irina2015-10-09 19:38:31
symfony
Irina, 2015-10-09 19:38:31

How to correctly specify the path to the template in Symfony?

Good evening.
How to correctly specify the path?
After all, there are two ways and I would like to know how correctly and how much.

// Первый
$this->render('@App/news.html.twig', []);

// Второй
$this->render('AppBundle:news.html.twig', []);

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2015-10-09
@IrishkaDeutsch

Soon the first option will be the only possible one:
https://github.com/symfony/symfony-standard/pull/861

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question