can you add function like getCurrentView() or similar in php and twig?
we can separate template type in folder(/full/base.html.twig, /mobile/base.html.twig, etc.).
and use it in php: return $this->render(getCurrentView() . '/base.html.twig');
for twig: {% extends getCurrentView()''.'/base.html.twig' %}
Hi, dear @suncat2000.
can you add function like getCurrentView() or similar in php and twig? we can separate template type in folder(/full/base.html.twig, /mobile/base.html.twig, etc.).
and use it in php: return $this->render(getCurrentView() . '/base.html.twig');
for twig: {% extends getCurrentView()''.'/base.html.twig' %}