Perhaps someone could outline what needs to be done to use a simple form as a custom LeftAndMain.
What I've tried so far is to extend LeftAndMain and override getEditForm() where I have a single action like new FormAction('doMailingForm', 'Send'). It shows the form all right. I have it all added to $allowed_actions and it goes to doMailingForm method after submitting.
But now, I'd like to return to the same form with a confirmation message. What do I then do in doMailingForm() method that services the form submission?
This just gives me blank page:
public function doMailingForm($data, $form) {
$form->sessionMessage('Wysłano :-)' . time(), 'good');
Controller::curr()->getRequest()->addHeader('X-Pjax', 'Content'); // Force a content refresh
return Controller::curr()->redirect($this->Link());
}