public function actionEmpgoods() { //内容查询 $pageNo = !empty($_GET['page']) ? $_GET['page'] : 1; if (isset($_GET['search'])) { $params = $_GET['search']; $result = Goods::getGoodsByDearID($_GET['dealer'], $params, $pageNo, 10); } else { $result = Goods::getGoodsByDearID($_GET['dealer'], null, $pageNo, 10); } //搜索中的适用品牌 $brand = $this->getbrand(0); //类别 $category = $this->getcategory(); $this->render("empgoods", array('search' => $params, 'models' => $result[0], 'pages' => $result[1], 'brand' => $brand, 'category' => $category)); }