Apigility Doubt in the Methods

Asked

Viewed 54 times

0

I am using the Apigility to create Web Services Rest only I have a doubt , I can add methods in class Resource , if yes how can I make a call the method through php.

Thank you

1 answer

0

Hello, the "Resource" class in Apigility, both Rest and RPC is created with the methods that will be called by the controller.

You normally create methods within the class and use them in the class itself with "$this". If you want to call these methods from other classes, there is probably some architecture error because the Resource class should be used exclusively to answer a request.

If you want to elaborate more on your problem, what kind of method you want to create, I can help more.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.