Pass values to external class |
09-18-2019, 10:00 PM
(This post was last modified: 09-19-2019, 12:44 AM by ciadmin. Edit Reason: protect password )
Good day,
I want to add a payment gateway to my project. For that, the payment gateway guys provided their code, now I want to pass some values from my controller to that file (Attached). The problem is the whole file is a class. I cant create my own function in it. Code: class NetworkonlieBitmapPaymentIntegration
Passing Parameters When Initializing Your Class: https://codeigniter.com/user_guide/gener...your-class
If they don't provide a way to do what you need to do you'll have to extend the class with a new class of your own that layers the functionality you need on top of theirs. Standard PHP stuff.
PHP Code: class MyNewClass extends NetworkonlieBitmapPaymentIntegration |
Welcome Guest, Not a member yet? Register Sign In |