A
A
Andrey Raboy2016-01-06 23:53:44
Yii
Andrey Raboy, 2016-01-06 23:53:44

What is in Yii/php?

<?= ... ?>
guys, the question, of course, may seem silly, but I read the Yii2 off-docs and this moment is not described / did not find there ...
something related to the template engine, somehow it processes it ... in general, a
space, do not kick, give an answer

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Pavlenko, 2016-01-07
@raba

This is PHP syntax.
Output the required variable; abbreviated notation.
Equivalently<?php echo ... ?>

A
Alexander Borisovich, 2016-01-07
@Alexufo

PHP code MUST use the full <?php ?> tags or the short form <?= ?>. Use of other variants of tags is NOT ALLOWED.
www.php-fig.org/psr/psr-1/ru/#2-1-%D0%A2%D0%B5%D0%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question