The viewer can be placed inside your own HTML template by emitting its scripts in the head and its markup in the body.

Render the script and HTML parts separately.
$viewer = new StiViewer();
$viewer->options->height = '800px';
$viewer->process();

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

// In <head>:  $viewer->javascript->renderHtml();
// In <body>:  $viewer->renderHtml();

How it works. Splitting the component into script and body lets the dashboard viewer sit inside any custom page layout.

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.