I am writing a function in the global code and in the function I have to set a success message and terminate the page.
e.g.
function myfunction(){
-----------------------------
$this->setSuccessMessage("Success");
$this->Page_Terminate("myurl");
}
Here I got a message as
"Fatal error: Using $this when not in object context in C:\wamp\www\cashsms\backend\userfn10.php on line 42"
As my function is in the global code $this is not in the object.
how can I handle this situation.