In my yii2 framework there are lots of line with php short echo tags <?=
for example:
<?= Html::a('Create Medicine', ['create'], ['class' => 'btn btn-success']) ?>
<?= $form->field($model, 'medicine_name')->textInput(['maxlength' => 50]) ?>
I couldn't make out an easy way to comment out this lines without first changing the opening tag. is there an easy way to this?
Thanks.
This should work for you:
<?= ""; stuff here ?>
I figure the easiest thing to do is replace <?=
with <?php //
, though it does change the opening tag...
for example
<?php //= Html::a('Create Medicine', ['create'], ['class' => 'btn btn-success']) ?>
<?php //= $form->field($model, 'medicine_name')->textInput(['maxlength' => 50]) ?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With