I don't know if I should create another topic for this, but I can't get it to work.
I created a package with CMP Generator, because MIGX didn't seem to do anything (it just said 'success' but didn't show anything apart from that). So I got my package in CMP Generator and edited my formit2db call to:
[[!FormIt? &hooks=`spam,email,formit2db,redirect` &prehooks=`db2formit` &packagename=`evdpackage` &tablename=`inschrijvingen` &emailTo=`
[email protected]` &emailUseFieldForSubject=`[[*pagetitle]]` &redirectTo=`1` &fsFormTopic=`[[*pagetitle]]`]]
When trying to send the form it just says "Failed to create object of type:"
So I checked out the formit2db snippet and noticed the classname parameter and adjusted my call accordingly:
[[!FormIt? &hooks=`spam,email,formit2db,redirect` &prehooks=`db2formit` &packagename=`evdpackage` &tablename=`inschrijvingen` &classname=`inschrijvingen` &emailTo=`
[email protected]` &emailUseFieldForSubject=`[[*pagetitle]]` &redirectTo=`1` &fsFormTopic=`[[*pagetitle]]`]]
This gives the error: "Failed to create object of type: inschrijvingen
Does anyone know what I am doing wrong? (or should I post another topic?)