public function actionIndex() { $params = $this->getQuery(); $accountId = $this->getAccountId(); if (!isset($params['categoryId'])) { throw new BadRequestHttpException('categoryId params missing'); } return CategoryProperty::orderProperty($params, $accountId); }