Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCurrentView() or similar #129

Open
Alymbek opened this issue Dec 25, 2018 · 0 comments
Open

getCurrentView() or similar #129

Alymbek opened this issue Dec 25, 2018 · 0 comments

Comments

@Alymbek
Copy link

Alymbek commented Dec 25, 2018

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' %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant