I created simple CMS and need to render right side of web page content which is not related to the central (middle) part of page - separate controller, separate action, separate view.
To do that, I need to call another controller action, render it to variable and inside index.phtml <?= $rightSide; ?>
I was thinking to use ControllerBase afterExecuteRoute() and call controllers action and render it to variable but I don't know how to do that.
I know I can do that with Ajax, but I don't want to do in that way.
How to do that?