yii模版中的判断方法

yii模版中的判断方法,


<?php if(!$model->isNewRecord):?>
<tr>
<th width="100px" class="bh-algRt"><?php echo $form->label($model,'order_sn'); ?>:</th>
<td width="300px" colspan=3><?php echo $model->order_sn?></td>
</tr>
<?php endif?>

不用解释了,看看就明白。

Meet so Meet. C plusplus I-PLUS....
原文地址:https://www.cnblogs.com/iplus/p/4489979.html