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
Pawan
source
to share
3 answers
This should work for you:
<?= ""; stuff here ?>
+2
Rizier123
source
to share
try this:
<? //= Html::a('Create Medicine', ['create'], ['class' => 'btn btn-success']) ?>
<? //= $form->field($model, 'medicine_name')->textInput(['maxlength' => 50]) ?>
0
Luis simioni
source
to share
I find it easiest to replace <?=
with <?php //
, although it changes the opening tag ...
0
Joao
source
to share