public function myAction()
{
if ($this->request->isPost()) {
//....
.
.
.
//page redirection when success, how to make it works
return $this->response->redirect([
'controller' => 'Index',
'action' => 'message',
'message' => 'Data saved successfully.'
]);
}
$this->view->pick('....');
.
.
.
}