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.
Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:

Editing a Report Template in the Designer

Hallo! Brauchen Sie Hilfe?