T
T
Tsarev Vadim2019-03-03 21:40:41
Yii
Tsarev Vadim, 2019-03-03 21:40:41

Yii works short start tag and doesn't work full in Html::a?

Good afternoon. Don't tell me I just started learning PHP in Yii when displaying a link, this is how it works

<li><?=   Html::a( 'Главная' ,  '/web/' )   ?></li>

it doesn't show up like that
<li><?php   Html::a( 'Главная' ,  '/web/' );   ?></li>
<li><?php   Html::a( 'Главная' ,  '/web/' )   ?></li>

As far as I understand <?= abbreviation <? php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2019-03-03
@zava75

As far as I understand <?= abbreviation <? php

No
<?= 'string' ?> 
сокращение
<?php echo 'string' ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question