P
P
Pavel Gogolinsky2017-02-27 10:41:15
Yii
Pavel Gogolinsky, 2017-02-27 10:41:15

How do you use twig or smaty?

They can simplify foreach, if and echo. How do you display breadcrambs, menu, form widgets? Are they with <?php ?> already or are there convenient ways?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2017-02-27
@gogolinsky

https://github.com/yiisoft/yii2-twig/blob/master/d...

M
Maxim Timofeev, 2017-02-27
@webinar

With them, you can simplify foreach, if and echo
Simplify? Hardly templating for this. What could be simpler than foreach, if and echo? The main task of the template engine is to separate the display from the application logic. They are easier to shield. There are other goodies, but certainly not a simplification of foreach, if and echo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question