错误,PHP中意外的T_IF错误?

Ste*_*sch -3 php

解析错误:语法错误,第90行update.php中的意外T_IF

我真的没有看到我的代码中有任何问题,为什么会发生这种情况,请帮忙.

<?= Html::activeHiddenInput($model, 'organization_title') ?>


    <?= $form->field($model, 'reason') ?>

90 line!    <?= if ($model->move_type === 1) { ?>
        <div id="partial-cost">
        <?=  $this->render('_cost-fields', [
            'model' => $model,
            'sourceType' => $sourceType,
            'typeDropdown' => $typeDropdown,
            'targetDropdown' => $targetDropdown,
            'form' => $form
            ]) ?>
        </div>
    <?= } ?>

    <?= if ($model->move_type === 0) { ?>
        <div id="partial-income" >
        <?= $this->render('_income-fields', [
            'model' => $model,
            'sourceType' => $sourceType,
            'typeDropdown' => $typeDropdown,
            'targetDropdown' => $targetDropdown,
            'form' => $form
            ]) ?>
        </div>  
    <?= } ?>



    <div class="form-group">
        <button type="submit" class="btn btn-default">Save</button>
    </div>
Run Code Online (Sandbox Code Playgroud)

Con*_*roß 6

<?=是一个简写<?php echo- 你不能回应if语句.

这也适用于您的线路阅读<?= } ?>.