public function actionCount() { Yii::$app->response->format = Response::FORMAT_JSON; $count = Order::getCountByStoreId(Yii::$app->user->identity->store_id); return ['count' => $count]; }