<table class="table"> <thead> <tr> <th>图片地址</th> <th>文字说明</th> <th>排序</th> </tr> </thead> <tbody> <?php $model = new Slide(); $de = new CDbCriteria(); $de->order = "sort DESC"; $all = $model->findAll($de); foreach ($all as $key => $value) { $this->renderPartial("_view", array("data" => $value->attributes)); } ?> </tbody> </table> </div> </div> </div> <!-- END SAMPLE TABLE PORTLET--> <link href="<?php echo Yii::app()->baseUrl; ?>