The problem is that the solution proposed in the documentation
don’t shows how to assemble the view of more than one template.
(I use slim/php-view)
return $this->view->render($response, "tickets.phtml", ["tickets" => $tickets, "router" => $this->router]);
All that we have here - $response, template file, and data. And as a result, we get a response write to the browser. What about composite pages consisting of several parts? For example I have a couple of different templates that I need to put in the main between tags?
Mayby I can push data into template and pull it out to the variable to use it like data for render method?