The Reports.PHP designer runs in the browser, served by the PHP SDK. This example opens the designer with a template loaded for editing.

Designer setup. Configure the designer, load the report template, process its callbacks, and connect the save action to the application.
$designer = new StiDesigner();
$designer->javascript->relativePath = '../';
$designer->process();

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

$designer->printHtml();


process() handles the designer's server requests, and printHtml() outputs the complete designer. Loading a report into designer->report opens it for editing — the full designer runs client-side.

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