In Laravel the viewer lives in a Blade view; it points its event handler at a route and loads a report template.

Set up the viewer in the Blade view.
$viewer = new StiViewer();

// Route events to the handler controller
$viewer->handler->url = "/handler";
$viewer->onPrepareVariables = true;

$report = new StiReport();
$report->loadFile("reports/SimpleList.mrt");
$viewer->report = $report;

How it works. The Blade view wires the viewer to Laravel's routing, so report requests are handled by a controller while rendering stays on the client.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.