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?>

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

posted @ 2012-04-26 15:19  夏至冬末  阅读(301)  评论(0编辑  收藏  举报