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.

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.