When i am trying to save a module details, it shows the below error, i don't know what is the mistake over there, but the data's are stored but every time i try to save i get this error.
ERROR
Fatal error: Call to undefined method ControllerPaymentIcicipg::redirect() in C:\xampp\htdocs\usa\admin\controller\payment\icicipg.php on line 18
my code
I came to the conclusion, that the method
redirect()
can only be undefined, if you were using Opencart 2.x, so please ignore my comment about which version you use.In Opencart 2.0
$this->redirect()
has been changed to$this->response->redirect()
. So line 17 should look something like this:An even better way of doing it (by keeping it compatible with Opencart 1.5.x) would be something, like this: