One of my views have to display data that is from an external API call.

To manage all of these API calls i have create a component.

Now in order to costum paginate i have to create a function inside of my model however since i'm not using the models table but instead the component i have to call that component inside my model.

Is this possible or is there a work around?