How can I comment out a line with a php short echo tag?

There are many lines in my yii2 framework with short php echo tags <?=

eg:

<?= Html::a('Create Medicine', ['create'], ['class' => 'btn btn-success']) ?>
<?= $form->field($model, 'medicine_name')->textInput(['maxlength' => 50]) ?>

      

I couldn't read an easy way to comment out these lines without changing the start tag first. is there an easy way to do this?

Thank.

+3


source to share


3 answers


This should work for you:



<?= ""; stuff here ?>

      

+2


source


try this:



<? //= Html::a('Create Medicine', ['create'], ['class' => 'btn btn-success']) ?>
<? //= $form->field($model, 'medicine_name')->textInput(['maxlength' => 50]) ?>

      

0


source


I find it easiest to replace <?=

with <?php //

, although it changes the opening tag ...

0


source







All Articles