The Reports.PHP viewer is created on the server with the PHP SDK, which outputs the JavaScript viewer into the page.

Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
$viewer = new StiViewer();
$viewer->javascript->relativePath = '../';
$viewer->process();

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

$viewer->printHtml();


process() handles the AJAX requests the viewer makes, loadFile loads a template, and printHtml() outputs the complete viewer HTML. The report is rendered in the browser by the bundled JavaScript engine.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Showing a Report in the Viewer