I m working on a joomla site. (i m new to joomla) i have a button cancel, which cancel a person subscription( i m using CIM) now i have the function made of xml file as said by the payment gateway SDK tut. But when i clock the button it says undefined method my method name, here is the code
if (isset($_POST['btnCancel'])){
//echo "Cancel Subscription";exit;
[B] $result = $this->cancelCustomerSubscription();[/B]
}
Now the echo is working but when i comment it and run this it throws a error
if (isset($_POST['btnCancel'])){
//echo "Cancel Subscription";exit;
$result = $this->:CancelSubscriptionRequest();
}
… part of a method inside a class? If so post that class.
It it is monstrously huge, just post the signatures of the methods (ie strip out the guts of each function except for the one which contains the calling code above).
We’ll probably need to see the whole of the class definition in order to procede… I’m not very well versed in OOP, so i’m gonna look around for help at this point
Nope, that’d be the class definition for the Controller_register class. Your error message spells out that the object you’re calling this reference from is of type Controller_profile…
Fatal error: Call to undefined method Controller_profile::[COLOR=“Blue”]CancelSubscriptionRequest/COLOR
I found controller which read as class Controller_register extends JController { // register controller, is this the one ur talking about? what about it and no its not under that class