terminal42 / contao-leads

Leads extension for Contao Open Source CMS; Store and manage form data with ease!
GNU Lesser General Public License v3.0
36 stars 24 forks source link

Class Database not found #118

Closed baumannsven closed 2 years ago

baumannsven commented 2 years ago

Detected: Contao 4.9

I collect leads data with the data collector.

If i get fields data. So i become the error Class 'Database' not found

$collector = new DataCollector($configuration['formId']);
$collector->setLeadDataIds(\array_keys(\iterator_to_array($leads)));
$reports = $collector->getFieldsData();
baumannsven commented 2 years ago

I have found a way the error not thrown.

I init the contao framework, thats it.