/** * Ajax获取扩展属性列表 */ public function actionAjaxlist() { $pageIndex = isset($_GET['page']) ? $_GET['page'] : 1; $goodTypeProps = new GoodsTypeProps(); $result = $goodTypeProps->PropsValueList($pageIndex, $this->pagesize); //分页 $pages = new CPagination($result['count']); echo $this->renderPartial('ajaxlist', array('dataProvider' => $result['item'], 'pages' => $pages, 'pageIndex' => $pageIndex - 1, 'propsValue' => $result['propsValue'])); }