public static function addOneCustomRoute($route, $method, $params) { $model = new RouteModel(); $model->route = $route; $model->type = self::COL_TYPE_CUSTOM; $model->ext = json_encode(['method' => $method, 'params' => $params]); return $model->save(); }