PHP code example of dmitry-trish / report-bundle
1. Go to this page and download the library: Download dmitry-trish/report-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dmitry-trish / report-bundle example snippets
$service = $this->get('dmitry_trish.report.report_service');
$form = $service->createForm();
if ($form->isSubmitted() && $form->isValid()) {
$service->register($form->getData());
}
use DmitryTrish\ReportBundle\Entity\Report;
...
$report = new Report();
$report->setText('Some report text');
$service->register($report);