The Dashboards.PHP viewer is created on the server with the PHP SDK, which emits the JavaScript viewer into the page. A dashboard is just a report loaded from a .mrt file.

Create the viewer, load the dashboard.
$viewer = new StiViewer();
$viewer->javascript->relativePath = '../';
$viewer->process();

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

$viewer->printHtml();

How it works. PHP configures and wires the viewer, but the dashboard renders client-side, so the same page both serves the viewer and answers its requests.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.